/home/desid573/public_html/eway
Edit: /home/desid573/public_html/eway/test.php (1924B)
'Mr.',
'FirstName' => 'John',
'LastName' => 'Smith',
'Country' => 'au',
'CardDetails' => [
'Name' => 'John Smith',
'Number' => '4444333322221111',
'ExpiryMonth' => '12',
'ExpiryYear' => '25',
'CVN' => '123',
]
];
$response = $client->createCustomer(\Eway\Rapid\Enum\ApiMethod::DIRECT, $customer);
echo "
";
print_r($response);
echo "
";
$tokencustomerid = $response->Customer->TokenCustomerID;
echo $tokencustomerid;
exit;
/*$transaction = [
'Customer' => [
'Reference' => 'A12345',
'Title' => 'Mr.',
'FirstName' => 'John',
'LastName' => 'Smith',
'CompanyName' => 'Demo Shop 123',
'JobDescription' => 'Developer',
'Street1' => 'Level 5',
'Street2' => '369 Queen Street',
'City' => 'Sydney',
'State' => 'NSW',
'PostalCode' => '2000',
'Country' => 'au',
'Phone' => '09 889 0986',
'Email' => 'demo@example.org',
'CardDetails' => [
'Name' => 'John Smith',
'Number' => '4444333322221111',
'ExpiryMonth' => '12',
'ExpiryYear' => '25',
'CVN' => '123',
]
],
'Payment' => [
'TotalAmount' => 1000,
],
'TransactionType' => \Eway\Rapid\Enum\TransactionType::PURCHASE,
];
$response = $client->createTransaction(\Eway\Rapid\Enum\ApiMethod::DIRECT, $transaction);
$tokencustomerid = $response->Customer->TokenCustomerID;
echo $tokencustomerid;
print_r($response);*/