Advertisement
Guest User

Untitled

a guest
Feb 5th, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.77 KB | None | 0 0
  1.     $xml->createTransactionRequest(array(
  2.         'refId' => '90801855',
  3.         'transactionRequest' => array(
  4.             'transactionType' => 'authCaptureTransaction',
  5.             'amount' => 31.41,
  6.             'payment' => array(
  7.                 'creditCard' => array(
  8.                     'cardNumber' => '4111111111111111',
  9.                     'expirationDate' => '042012',
  10.                     'cardCode' => '123',
  11.                 ),
  12.             ),
  13.             'order' => array(
  14.                 'invoiceNumber' => '1360116011',
  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' => '22',
  36.             'customer' => array(
  37.                'id' => '2',
  38.                'email' => '[email protected]',
  39.             ),
  40.             'billTo' => array(
  41.                'firstName' => 'john',
  42.                'lastName' => 'smith',
  43.                'address' => '132 addy here lane',
  44.                'city' => 'foxboro',
  45.                'state' => 'MA',
  46.                'zip' => '01955',
  47.                'country' => 'USA',
  48.             ),
  49.             'customerIP' => '12.123.123.123',
  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