Advertisement
Guest User

Untitled

a guest
Feb 5th, 2013
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.96 KB | None | 0 0
  1. $xml->createTransactionRequest(array(
  2. 'refId' => rand(1000000, 100000000),
  3. 'transactionRequest' => array(
  4. 'transactionType' => 'authCaptureTransaction',
  5. 'amount' => 45.00,
  6. 'payment' => array(
  7. 'creditCard' => array(
  8.     'cardNumber' => '4111111111111111',
  9.     'expirationDate' => '122015',
  10.     'cardCode' => '123',
  11. ),
  12. ),
  13. 'order' => array(
  14. 'invoiceNumber' => '123123',
  15. 'description' => 'Purchase from website',
  16. ),
  17. 'lineItems' => array(
  18.             'lineItem' => array(
  19.                 0 => array(
  20.                     'itemId' => '1',
  21.                     'name' => 'item one title',
  22.                     'description' => 'item one description',
  23.                     'quantity' => '1',
  24.                     'unitPrice' => '19.90'
  25.                 ),
  26.                 1 => array(
  27.                     'itemId' => '4',
  28.                     'name' => 'item 4 title',
  29.                     'description' => 'item 4 description',
  30.                     'quantity' => '1',
  31.                     'unitPrice' => '15.00'
  32.                 )
  33.             )
  34.         ),
  35. 'poNumber' => '123123321',
  36. 'customer' => array(
  37. 'id' => 123,
  38. 'email' => email@website.com,
  39. ),
  40. 'billTo' => array(
  41. 'firstName' => $firstname,
  42. 'lastName' => $lastname,
  43. 'address' => $address,
  44. 'city' => $city,
  45. 'state' => $state,
  46. 'zip' => $zipcode,
  47. 'country' => 'USA',
  48. ),
  49. 'customerIP' => 12-12-12-1234,
  50. 'transactionSettings' => array(
  51. 'setting' => array(
  52.     0 => array(
  53.         'settingName' =>'allowPartialAuth',
  54.         'settingValue' => 'false'
  55.                                                 ),
  56.     1 => array(
  57.         'settingName' => 'duplicateWindow',
  58.         'settingValue' => '0'
  59.     ),
  60.     2 => array(
  61.         'settingName' => 'emailCustomer',
  62.         'settingValue' => 'true'
  63.     ),
  64.     3 => array(
  65.         'settingName' => 'recurringBilling',
  66.         'settingValue' => 'false'
  67.     ),
  68.     4 => array(
  69.         'settingName' => 'testRequest',
  70.         'settingValue' => 'false'
  71.     )
  72. )
  73. ),
  74. ),
  75. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement