While creating an Adset in facebook-ads-sdk i get invalid parameter. I tried my best to track and resolve the problem but couldn't succeed. Please help. Following is the code snippet:
function adddSet($audienceid,$parentId,$accountId2,$campaignid,$productSetId){
try {
$adset = new AdSet(null, $accountId2);
$adset->setData(array(
AdSetFields::NAME => 'test',
AdSetFields::DAILY_BUDGET =>40000,
AdSetFields::BID_AMOUNT =>4000,
AdSetFields::BILLING_EVENT => BillingEvents::IMPRESSIONS,
AdSetFields::OPTIMIZATION_GOAL => OptimizationGoals::APP_INSTALLS,
AdSetFields::CAMPAIGN_ID => $campaignid,
AdSetFields::START_TIME => '2016-04-11T09:22:03+00:00',
AdSetFields::END_TIME =>'2016-04-20T09:22:03+00:00',
AdSetFields::TARGETING => (new TargetingSpecs())->setData(array(
TargetingSpecsFields::GEO_LOCATIONS => array(
'countries' => array('JP'),
'regions' => array(array('key' => '3886')),
'cities' => array(
array(
'key' => '2420605',
'radius' => 10,
'distance_unit' => 'mile',
),
),
),
TargetingSpecsFields::GENDERS => array(1),
TargetingSpecsFields::AGE_MIN => 20,
TargetingSpecsFields::AGE_MAX => 24,
TargetingSpecsFields::PAGE_TYPES => array(
PageTypes::MOBILE_FEED,
PageTypes::MOBILE_EXTERNAL,
),
)),
));
$adset->create(array(AdSet::STATUS_PARAM_NAME=>AdSet::STATUS_PAUSED));
}
catch(\FacebookAds\Http\Exception\RequestException $e){
echo $e->getMessage();
}
}
and get the following response:
Invalid parameter
This might help you to better understand exact error.
function adddSet($audienceid,$parentId,$accountId2,$campaignid,$productSetId){
try {
$adset = new AdSet(null, $accountId2);
$adset->setData(array(
AdSetFields::NAME => 'test',
AdSetFields::DAILY_BUDGET =>40000,
AdSetFields::BID_AMOUNT =>4000,
AdSetFields::BILLING_EVENT => BillingEvents::IMPRESSIONS,
AdSetFields::OPTIMIZATION_GOAL => OptimizationGoals::APP_INSTALLS,
AdSetFields::CAMPAIGN_ID => $campaignid,
AdSetFields::START_TIME => '2016-04-11T09:22:03+00:00',
AdSetFields::END_TIME =>'2016-04-20T09:22:03+00:00',
AdSetFields::TARGETING => (new TargetingSpecs())->setData(array(
TargetingSpecsFields::GEO_LOCATIONS => array(
'countries' => array('JP'),
'regions' => array(array('key' => '3886')),
'cities' => array(
array(
'key' => '2420605',
'radius' => 10,
'distance_unit' => 'mile',
),
),
),
TargetingSpecsFields::GENDERS => array(1),
TargetingSpecsFields::AGE_MIN => 20,
TargetingSpecsFields::AGE_MAX => 24,
TargetingSpecsFields::PAGE_TYPES => array(
PageTypes::MOBILE_FEED,
PageTypes::MOBILE_EXTERNAL,
),
)),
));
$adset->create(array(AdSet::STATUS_PARAM_NAME=>AdSet::STATUS_PAUSED));
}
catch(\FacebookAds\Http\Exception\AuthorizationException $e){
print_r($e->getResponse()->getBody());
}
}
Related
I'm facing an issue with the integration of the paypal PHP Api on my website.
When i try to buy something with a brazilian sandbox account when going to my paypal_payment_succes.php page i get the following error when executing the payment:
{"name":"VALIDATION_ERROR","details":[{"field":"transactions[0].item_list.shipping_address.normalization_status","issue":"Field name is not defined for this resource type."}],"message":"Invalid request. See details.","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"e0f0cecbd95f3"}
It seems to be an issue with the adress normalization but i'm not able to solve it on my own.
Here is the creation of the request:
$payer = new \PayPal\Api\Payer();
$payer->setPaymentMethod('paypal');
$list = new \PayPal\Api\ItemList();
$item = new \PayPal\Api\Item();
$item->setName("myItem");
$item->setPrice($iten_ht_price);
$item->setCurrency('EUR');
$item->setQuantity(1);
$list->addItem($item);
$details = new \PayPal\Api\Details();
$details->setSubtotal($iten_ht_price);
$details->setTax($item_taxes);
$amount = new \PayPal\Api\Amount();
$amount->setTotal($item_ttc_price);
$amount->setCurrency('EUR');
$amount->setDetails($details);
$transaction = new \PayPal\Api\Transaction();
$transaction->setItemList($list);
$transaction->setDescription($service_info["NAME"]);
$transaction->setAmount($amount);
$redirectUrls = new \PayPal\Api\RedirectUrls();
$redirectUrls->setReturnUrl("https://example.com/paypal_payment_success.php")
->setCancelUrl("https://example.com/paypal_payment_cancel.php");
$payment = new \PayPal\Api\Payment();
$payment->setIntent('sale')
->setPayer($payer)
->setTransactions(array($transaction))
->setRedirectUrls($redirectUrls);
try {
$payment->create($apiContext);
?>
<script type="text/javascript">
window.location.href = '<?php echo $payment->getApprovalLink(); ?>';
</script>
<?php
}
and here is the payment validation:
$payment = \PayPal\Api\Payment::get($_GET['paymentId'], $apiContext);
$execution = new \PayPal\Api\PaymentExecution();
$execution->setPayerId($_GET["PayerID"])
->setTransactions($payment->getTransactions());
try {
$payment->execute($execution, $apiContext);
}
catch (\PayPal\Exception\PayPalConnectionException $ex) {
echo '<div class="alert alert-danger"><strong>'.$l["error_happend"].'</strong></div>';
echo $ex->getData();
error_log("paypal_payment_success.php error: ". $ex->getData());
}
here is the full content of the $payment variable:
PayPal\Api\Payment::__set_state(array(
'_propMap' =>
array (
'id' => 'PAYID-LR6OIAQ8K6195799T910831S',
'intent' => 'sale',
'state' => 'created',
'cart' => '8GR605689F1809928',
'payer' =>
PayPal\Api\Payer::__set_state(array(
'_propMap' =>
array (
'payment_method' => 'paypal',
'status' => 'VERIFIED',
'payer_info' =>
PayPal\Api\PayerInfo::__set_state(array(
'_propMap' =>
array (
'email' => 'billing-brazil1#example.com',
'first_name' => 'Mg',
'last_name' => 'Doctor',
'payer_id' => 'LQX9UCM6YMM96',
'shipping_address' =>
PayPal\Api\ShippingAddress::__set_state(array(
'_propMap' =>
array (
'recipient_name' => 'Mg Doctor',
'line1' => '1234 Rua Main',
'city' => 'Rio De Janeiro',
'state' => 'RJ',
'postal_code' => '22021-001',
'country_code' => 'BR',
'normalization_status' => 'UNNORMALIZED_USER_PREFERRED',
),
)),
'tax_id_type' => 'BR_CPF',
'tax_id' => '30949017787',
'country_code' => 'BR',
),
)),
),
)),
'transactions' =>
array (
0 =>
PayPal\Api\Transaction::__set_state(array(
'_propMap' =>
array (
'amount' =>
PayPal\Api\Amount::__set_state(array(
'_propMap' =>
array (
'total' => '2.50',
'currency' => 'EUR',
'details' =>
PayPal\Api\Details::__set_state(array(
'_propMap' =>
array (
'subtotal' => '2.00',
'tax' => '0.50',
),
)),
),
)),
'payee' =>
PayPal\Api\Payee::__set_state(array(
'_propMap' =>
array (
'merchant_id' => 'WTK64MCV7B6NC',
'email' => 'billing-facilitator#example.com',
),
)),
'description' => 'SeedBox Starter',
'custom' => '57|6|1|2.50|NEW',
'item_list' =>
PayPal\Api\ItemList::__set_state(array(
'_propMap' =>
array (
'items' =>
array (
0 =>
PayPal\Api\Item::__set_state(array(
'_propMap' =>
array (
'name' => 'SeedBox Starter | Achat | 1 mois',
'price' => '2.00',
'currency' => 'EUR',
'quantity' => 1,
),
)),
),
'shipping_address' =>
PayPal\Api\ShippingAddress::__set_state(array(
'_propMap' =>
array (
'recipient_name' => 'Mg Doctor',
'line1' => '1234 Rua Main',
'city' => 'Rio De Janeiro',
'state' => 'RJ',
'postal_code' => '22021-001',
'country_code' => 'BR',
'normalization_status' => 'UNNORMALIZED_USER_PREFERRED',
),
)),
),
)),
'related_resources' =>
array (
),
),
)),
),
'redirect_urls' =>
PayPal\Api\RedirectUrls::__set_state(array(
'_propMap' =>
array (
'return_url' => 'https://example.com/paypal_payment_success.php?paymentId=PAYID-LR6OIAQ8K6195799T910831S',
'cancel_url' => 'https://example.com/paypal_payment_cancel.php',
),
)),
'create_time' => '2019-03-04T08:38:26Z',
'update_time' => '2019-03-04T08:38:45Z',
'links' =>
array (
0 =>
PayPal\Api\Links::__set_state(array(
'_propMap' =>
array (
'href' => 'https://api.sandbox.paypal.com/v1/payments/payment/PAYID-LR6OIAQ8K6195799T910831S',
'rel' => 'self',
'method' => 'GET',
),
)),
1 =>
PayPal\Api\Links::__set_state(array(
'_propMap' =>
array (
'href' => 'https://api.sandbox.paypal.com/v1/payments/payment/PAYID-LR6OIAQ8K6195799T910831S/execute',
'rel' => 'execute',
'method' => 'POST',
),
)),
2 =>
PayPal\Api\Links::__set_state(array(
'_propMap' =>
array (
'href' => 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-8GR605689F1809928',
'rel' => 'approval_url',
'method' => 'REDIRECT',
),
)),
),
),
))
In advance thank you :)
I'm new to AWS DynamoDB and to nosql in general, and I'm having problem with table creation.
I'm trying to create a table named User with the following Attributes:
UserId (HASH)
OSType (RANGE)
MSISDN
IMSI
DeviceID
I need to query the table not only by UserId, but also by the following fields:
MSISDN
IMSI
DeviceID
My Logic is as follows:
Query the table by the UserId field.
If the query returned no results create a new one, but check that there isn't other users with the same MSISDN filed OR the same IMSI field OR the same DeviceID field.
After reading the manual about LSI/GSI i'm having difficulties understating how to create the table and define those indexes.
This is the code i'm tring to execute to creater the table using PHP+AWS SDK:
$client->createTable(array(
'TableName' => 'User',
'AttributeDefinitions' => array(
array('AttributeName' => 'UserId', 'AttributeType' => 'S'),
array('AttributeName' => 'OSType', 'AttributeType' => 'S'),
array('AttributeName' => 'MSISDN', 'AttributeType' => 'S'),
array('AttributeName' => 'IMSI', 'AttributeType' => 'S'),
array('AttributeName' => 'DeviceID', 'AttributeType' => 'S'),
),
'KeySchema' => array(
array('AttributeName' => 'UserId', 'KeyType' => 'HASH'),
array('AttributeName' => 'OSType', 'KeyType' => 'RANGE')
),
'GlobalSecondaryIndexes' => array(
array(
'IndexName' => 'IMSIIndex',
'KeySchema' => array(
array('AttributeName' => 'IMSI', 'KeyType' => 'HASH')
),
'Projection' => array(
'ProjectionType' => 'KEYS_ONLY',
),
'ProvisionedThroughput' => array(
'ReadCapacityUnits' => 10,
'WriteCapacityUnits' => 10
)
),
array(
'IndexName' => 'MSISDNIndex',
'KeySchema' => array(
array('AttributeName' => 'MSISDN', 'KeyType' => 'HASH')
),
'Projection' => array(
'ProjectionType' => 'KEYS_ONLY',
),
'ProvisionedThroughput' => array(
'ReadCapacityUnits' => 10,
'WriteCapacityUnits' => 10
)
),
array(
'IndexName' => 'DeviceIDIndex',
'KeySchema' => array(
array('AttributeName' => 'DeviceID', 'KeyType' => 'HASH')
),
'Projection' => array(
'ProjectionType' => 'KEYS_ONLY',
),
'ProvisionedThroughput' => array(
'ReadCapacityUnits' => 10,
'WriteCapacityUnits' => 10
)
),
),
'ProvisionedThroughput' => array(
'ReadCapacityUnits' => 50,
'WriteCapacityUnits' => 50
)
));
I'm getting this error:
PHP Fatal error: Uncaught Aws\DynamoDb\Exception\ValidationException: AWS Error Code: ValidationException, Status Code: 400, AWS Request ID: 70LGIARTTQF90S8P0HVRUKSJ27VV4KQNSO5AEMVJF66Q9ASUAAJG, AWS Error Type: client, AWS Error Message: One or more parameter values were invalid: Number of attributes in KeySchema does not exactly match number of attributes defined in AttributeDefinitions, User-Agent: aws-sdk-php2/2.4.11 Guzzle/3.7.4 curl/7.29.0 PHP/5.4.14
Please help me understand what am I doing wrong. I want to create the table with GSI, but I just can't comprehend the essence of secondary index in DynamoDB :(
Only attributes that are included in local and global index should be defined in the AttributeDefinitions section.
This should work:
$client->createTable(array(
'TableName' => 'User',
'AttributeDefinitions' => array(
array('AttributeName' => 'UserId', 'AttributeType' => 'S'),
array('AttributeName' => 'OSType', 'AttributeType' => 'S')
),
'KeySchema' => array(
array('AttributeName' => 'UserId', 'KeyType' => 'HASH'),
array('AttributeName' => 'OSType', 'KeyType' => 'RANGE')
),
'GlobalSecondaryIndexes' => array(
array(
'IndexName' => 'IMSIIndex',
'KeySchema' => array(
array('AttributeName' => 'IMSI', 'KeyType' => 'HASH')
),
'Projection' => array(
'ProjectionType' => 'KEYS_ONLY',
),
'ProvisionedThroughput' => array(
'ReadCapacityUnits' => 10,
'WriteCapacityUnits' => 10
)
),
array(
'IndexName' => 'MSISDNIndex',
'KeySchema' => array(
array('AttributeName' => 'MSISDN', 'KeyType' => 'HASH')
),
'Projection' => array(
'ProjectionType' => 'KEYS_ONLY',
),
'ProvisionedThroughput' => array(
'ReadCapacityUnits' => 10,
'WriteCapacityUnits' => 10
)
),
array(
'IndexName' => 'DeviceIDIndex',
'KeySchema' => array(
array('AttributeName' => 'DeviceID', 'KeyType' => 'HASH')
),
'Projection' => array(
'ProjectionType' => 'KEYS_ONLY',
),
'ProvisionedThroughput' => array(
'ReadCapacityUnits' => 10,
'WriteCapacityUnits' => 10
)
),
),
'ProvisionedThroughput' => array(
'ReadCapacityUnits' => 50,
'WriteCapacityUnits' => 50
)));
Hope that helps
When i try to send this request then i get error "id: 0 500 Internal Server Error - SoapFault".
My request:
$client = new SoapClient( 'xxx', array('trace' => 1));
$client -> soap_defencoding = 'utf-8';
$client -> decode_utf8 = FALSE;
$a = array( 'user_name' => 'xx', 'user_password' => 'xx' );
$response = $client->__soapCall( 'adeLogin', $a );
$session = get_object_vars($response)['session'];
$aCPrep = array(
'rname1' => 'Pan',
'rname2' => 'Jan',
'rname3' => 'test',
'rcountry' => 'PL',
'rzipcode' => '00-950',
'rcity' => 'Warszawa',
'rstreet' => 'ul. Kwieciska 15',
'quantity' => '1',
'rphone' => '1500-100-900',
'rcontact' => 'Antoni',
'weight' => '100',
'date' => '2012-01-01',
'references' => 'by WebAPI ',
'notes' => 'by Thomi (thest 4)',
'srv_ade' => 'asd',
'pfc' => 'Magazyn',
'sendaddr' => array( 'name1' => 'Firma z Francji', 'name2' => 'firma', 'name3' => 'firma2','country' => 'FR', 'zipcode' => '14117', 'city' => 'Arromanches', 'street' => 'Pl. du Six Juin 1944' ),
'srv_daw' => array( 'name' => '','building' => '','floor' => '','room' => '','phone' => '','altrec' => ''),
'srv_ident' => array( 'name' => '','country' => '','zipcode' => '','city' => '','street' => '','nation' => '','date_birth' => '','identity' => '','ident_doctype' => '','spages' => '','ssign' => '','sdealsend' => '','sdealrec' => ''),
'srv_ppe' => array( 'sname1' => '','sname2' => '','sname3' => '','scountry' => '','szipcode' => '','scity' => '','sstreet' => '','sphone' => '','scontact' => '','rname1' => '','rname2' => '','rname3' => '','rcountry' => '','rzipcode' => '','rcity' => '','rstreet' => '','rphone' => '','rcontact' => '','references' => '','weight' => ''),
'srv_bool' => array( 'cod' => '1', 'cod_amount' => '200', 'exw' => '0', 'rod' => '0', 'pod' => '0', 'exc' => '0','ident' => '0','daw' => '0','ps' => '0','pr' => '0','s10' => '0','s12' => '0','sat' => '0','ow' => '0','srs' => '0',),
'parcels' => array( '0' => array( 'weight' => '15', 'reference' => 'paczka duza','number' => '','srv_ade' => '', 'srv_bool' => array( 'cod' => '1', 'cod_amount' => '200', 'exw' => '0', 'rod' => '0', 'pod' => '0', 'exc' => '0','ident' => '0','daw' => '0','ps' => '0','pr' => '0','s10' => '0','s12' => '0','sat' => '0','ow' => '0','srs' => '0')))
);
$aCMsg = array( 'session' => $session, 'consign_prep_data' => $aCPrep );
$aClient = $client->__soapCall( 'adePreparingBox_Insert', $aCMsg );
It is error from my soap server or from symfony ? Anybody know what is wrong ?
How can i show the XML ?
it's response from SOAP server
Try
echo "REQUEST:\n".$client->__getLastRequest()."\n";
echo "RESPONSE:\n".$client->__getLastResponse()."\n";
I have this code: http://pastebin.com/iFwyKM7G
Inside an event-observer class which executes after the customer registered. It creates an order automatically and it works for simple products. However I cannot figure out for the life of me how to make it work with Bundled product!
How can I make this work with a bundled product?
I DID IT!
I changed my code to the following:
$customer = Mage::getSingleton('customer/customer')->load($observer->getCustomer()->getId());
$session = Mage::getSingleton('adminhtml/session_quote');
$order_create_model = Mage::getSingleton('adminhtml/sales_order_create');
Mage::log($customer->debug(), null, 'toszodj_meg.log');
//$transaction = Mage::getModel('core/resource_transaction');
$storeId = $customer->getStoreId();
Mage::log($customer->getDefaultBillingAddress()->debug(), null, 'toszodj_meg.log');
$reservedOrderId = Mage::getSingleton('eav/config')->getEntityType('order')->fetchNewIncrementId($storeId);
$session->setCustomerId((int) $customer->getId());
$session->setStoreId((int) $storeId);
$orderData = array(
'session' => array(
'customer_id' => $customer->getId(),
'store_id' => $storeId,
),
'payment' => array(
'method' => 'banktransfer',
'po_number' => (string) '-',
),
// 123456 denotes the product's ID value
'add_products' =>array(
'2' => array(
'qty' => 1,
'bundle_option' => array(
2 => 2,
1 => 1,
),
'bundle_option_qty' => array(
2 => 1,
1 => 1,
),
),
),
'order' => array(
'currency' => 'EUR',
'account' => array(
'group_id' => $customer->getGroupId(),
'email' => (string) $customer->getEmail(),
),
'comment' => array('customer_note' => 'API ORDER'),
'send_confirmation' => 1,
'shipping_method' => 'flatrate_flatrate',
'billing_address' => array(
'customer_address_id' => $customer->getDefaultBillingAddress()->getEntityId(),
'prefix' => $customer->getDefaultBillingAddress()->getPrefix(),
'firstname' => $customer->getDefaultBillingAddress()->getFirstname(),
'middlename' => $customer->getDefaultBillingAddress()->getMiddlename(),
'lastname' => $customer->getDefaultBillingAddress()->getLastname(),
'suffix' => $customer->getDefaultBillingAddress()->getSuffix(),
'company' => $customer->getDefaultBillingAddress()->getCompany(),
'street' => $customer->getDefaultBillingAddress()->getStreet(),
'city' => $customer->getDefaultBillingAddress()->getCity(),
'country_id' => $customer->getDefaultBillingAddress()->getCountryId(),
'region' => $customer->getDefaultBillingAddress()->getRegion(),
'region_id' => $customer->getDefaultBillingAddress()->getRegionId(),
'postcode' => $customer->getDefaultBillingAddress()->getPostcode(),
'telephone' => $customer->getDefaultBillingAddress()->getTelephone(),
'fax' => $customer->getDefaultBillingAddress()->getFax(),
),
'shipping_address' => array(
'customer_address_id' => $customer->getDefaultShippingAddress()->getEntityId(),
'prefix' => $customer->getDefaultShippingAddress()->getPrefix(),
'firstname' => $customer->getDefaultShippingAddress()->getFirstname(),
'middlename' => $customer->getDefaultShippingAddress()->getMiddlename(),
'lastname' => $customer->getDefaultShippingAddress()->getLastname(),
'suffix' => $customer->getDefaultShippingAddress()->getSuffix(),
'company' => $customer->getDefaultShippingAddress()->getCompany(),
'street' => $customer->getDefaultShippingAddress()->getStreet(),
'city' => $customer->getDefaultShippingAddress()->getCity(),
'country_id' => $customer->getDefaultShippingAddress()->getCountryId(),
'region' => $customer->getDefaultShippingAddress()->getRegion(),
'region_id' => $customer->getDefaultShippingAddress()->getRegionId(),
'postcode' => $customer->getDefaultShippingAddress()->getPostcode(),
'telephone' => $customer->getDefaultShippingAddress()->getTelephone(),
'fax' => $customer->getDefaultShippingAddress()->getFax(),
),
),
);
$order_create_model->importPostData($orderData['order']);
$order_create_model->getBillingAddress();
$order_create_model->setShippingAsBilling(true);
$order_create_model->addProducts($orderData['add_products']);
$order_create_model->collectShippingRates();
$order_create_model->getQuote()->getPayment()->addData($orderData['payment']);
$order_create_model
->initRuleData()
->saveQuote();
$order_create_model->getQuote()->getPayment()->addData($orderData['payment']);
$order_create_model->setPaymentData($orderData['payment']);
$order_create_model
->importPostData($orderData['order'])
->createOrder();
$session->clear();
Mage::unregister('rule_data');
Mage::log('Order Successfull', null, 'siker_bammer.log');
And it works! thought the customer doesn't get notified. which iam trying to figure out now.
I am trying to find a way to refund payments using Authorize.net's AIM API. I found sample code located here: https://github.com/stymiee/Authorize.Net-XML. Here is the code that I am using from the sample:
require('../../config.inc.php');
require('../../AuthnetXML.class.php');
$xml = new AuthnetXML(AUTHNET_LOGIN, AUTHNET_TRANSKEY, AuthnetXML::USE_DEVELOPMENT_SERVER);
$xml->createTransactionRequest(array(
'refId' => rand(1000000, 100000000),
'transactionRequest' => array(
'transactionType' => 'refundTransaction',
'amount' => 5,
'payment' => array(
'creditCard' => array(
'cardNumber' => 'XXXX1111',
'expirationDate' => '122016'
)
),
'authCode' => '2165668159'
),
));
I keep getting an error message saying that the card code is missing. Any thoughts on what is missing to allow a refund to go through?
NEW CODE:
$xml = new AuthnetXML(AUTHNET_LOGIN, AUTHNET_TRANSKEY);
$xml->createTransactionRequest(array(
'refId' => rand(1000000, 100000000),
'transactionRequest' => array(
'transactionType' => 'refundTransaction',
'amount' => 1.00,
'payment' => array(
'creditCard' => array(
'cardNumber' => 'XXXX1014',
'expirationDate' => '122025',
)
),
'refTransId' => '4928163616',
),
));
$xml = new AuthnetXML(AUTHNET_LOGIN, AUTHNET_TRANSKEY);
$xml->createTransactionRequest(array(
'refId' => rand(1000000, 100000000),
'transactionRequest' => array(
'transactionType' => 'refundTransaction',
'amount' => 1.00,
'payment' => array(
'creditCard' => array(
'cardNumber' => 'XXXX1014',
'expirationDate' => '122025',
)
),
'refTransId' => '4928163616',
'transactionSettings' => array(
'setting' => array(
0 => array(
'settingName' => 'emailCustomer',
'settingValue' => 'true'
),
)
),
),
));