-
-
Save Davidlab/e3cc11a7c80a4c273d31 to your computer and use it in GitHub Desktop.
checkOutShoppingCart Multi Item php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$params = array( | |
'Test' => true, | |
'ClientID' => 5555555, | |
'PromotionCode' => 'testpromo', | |
'CartItems' => array( | |
array( | |
'Quantity' => 1, | |
'ClassIDs' => array('232323'), | |
'Item' => new SoapVar( | |
array('ID' => '1364'), | |
SOAP_ENC_ARRAY, | |
'Service', | |
'http://clients.mindbodyonline.com/api/0_5' | |
), | |
'DiscountAmount' => 0 | |
), | |
array( | |
'Quantity' => 1, | |
'EnrollmentIDs' => array('23456'), | |
'Item' => new SoapVar( | |
array('ID' => '1192'), | |
SOAP_ENC_ARRAY, | |
'Service', | |
'http://clients.mindbodyonline.com/api/0_5' | |
), | |
'DiscountAmount' => 0 | |
), | |
), | |
'Payments' => array( | |
'PaymentInfo' => new SoapVar( | |
array( | |
'CreditCardNumber' => '4111111111111111', | |
'ExpYear' => '2015', | |
'ExpMonth' => '06', | |
'Amount' => '108', | |
'BillingAddress' => '123 Happy Ln', | |
'BillingPostalCode' => '93405' | |
), | |
SOAP_ENC_ARRAY, | |
'CreditCardInfo', | |
'http://clients.mindbodyonline.com/api/0_5' | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment