Skip to content

Instantly share code, notes, and snippets.

@kennonb
Created May 25, 2015 16:03
Show Gist options
  • Save kennonb/dd77793ba2adf162f2a5 to your computer and use it in GitHub Desktop.
Save kennonb/dd77793ba2adf162f2a5 to your computer and use it in GitHub Desktop.
Bernard Transaction Parameters
$bernardParameters = [
'PartnerID' => 'Bernard ID',
'TotalTransactionAmount' => (float) "10.00",
'TransactionDate' => $this->carbon->now()->toIso8601String(),
'Channel' => '3-Internet',
'BatchType' => 'Web Import',
// This changes based on the type of card used
'BatchCategory' => 'Internet - Visa/MC',
'ResponsesOverridden' => false,
'AppealCode' => 'Appeal Code',
'Payment' => [
'Amount' => (float) '10.00',
'Status' => 'Received',
'PaymentType' => 'Credit Card',
'FirstName' => 'First Name',
'LastName' => 'Last Name',
'Address1' => 'Street',
'Address2' => '',
'City' => 'City',
'StateProvince' => 'State',
'PostalCode' => 'Postal Code',
'Country' => 'Country - 2 digit ISO',
],
// If an order has a product attached to it
'Shipping' => [
'ShippingOverridden' => true,
'Shipto' => 'Name',
'ShiptoAddress1' => 'street1',
'ShiptoAddress2' => 'street2',
'ShiptoCity' => 'city',
'ShiptoState' => 'state',
'ShiptoPostalCode' => 'postal_code',
'ShiptoCountry' => 'country',
'ShippingNote' => '',
'ShippingMethod' => '',
],
'ProductOrders' => [
[
'FundCode' => '3430',
'ProductSKU' => 'SKU',
'Quantity' => (int) 1,
'Price' => (float) '10.00',
'Discount' => (float) 0,
]
],
// If no product is attached, then I just send over the Gifts object
'Gifts' => [
[
'GiftAmount' => (float) '10.00',
'FundCode' => '3430',
],
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment