Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Clarification on vault purchases
Browse files Browse the repository at this point in the history
Credit card details are not necessary when making a vault purchase/pre-auth.
The use case for vault transactions is to use the details saved in the vault. I removed them from the example because it most closely resembles the use case.
  • Loading branch information
kerkness authored Aug 22, 2020
1 parent 0f56561 commit 228dde2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ $response = $vault->expiring();

Credit cards stored in the Moneris Vault have a slightly different flow for purchasing and pre-authorization. Any of the other transactions work exactly the same as shown above.

#### Purchase
#### Vault Purchase

```php
$card = CreditCard::create('4242424242424242', '2012');
Expand All @@ -397,9 +397,6 @@ $key = $response->receipt()->read('key');
$params = [
'order_id' => uniqid('1234-56789', true),
'amount' => '1.00',
'credit_card' => '4242424242424242',
'expiry_month' => '12',
'expiry_year' => '20',
'data_key' => $key,
];

Expand All @@ -408,7 +405,7 @@ $response = $vault->purchase($params); //

> **Note:** The Vault is used for the transaction here instead of the base Gateway object.
#### Pre-Authorization
#### Vault Pre-Authorization

```php
$card = CreditCard::create('4242424242424242', '2012');
Expand All @@ -419,9 +416,6 @@ $key = $response->receipt()->read('key');
$params = [
'order_id' => uniqid('1234-56789', true),
'amount' => '1.00',
'credit_card' => '4242424242424242',
'expiry_month' => '12',
'expiry_year' => '20',
'data_key' => $key,
];

Expand Down

0 comments on commit 228dde2

Please sign in to comment.