Skip to content

Commit

Permalink
Example of a customerDriversLicense that gets through validation.
Browse files Browse the repository at this point in the history
This is validation at the gateway rather than locally. The documentation
is lacking on this field and its values, but it does seem to be US-only
driving licence details.
  • Loading branch information
judgej committed Jan 19, 2019
1 parent c1a5aa8 commit 6c579c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ $response = $gateway->authorize([
// Additional optional attributes:
'customerId' => '123456',
'customerType' => \Academe\AuthorizeNet\Request\Model\Customer::CUSTOMER_TYPE_INDIVIDUAL,
~~'customerDriversLicense' => [TBC],~~
'customerDriversLicense' => [
'number' => '123456',
'state' => 'NY',
'dateOfBirth' => '1967-01-01',
],
'customerTaxId' => 'TAX456',
])->send();

Expand Down

0 comments on commit 6c579c0

Please sign in to comment.