We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be2d04 commit 21f012eCopy full SHA for 21f012e
tests/Message/AuthorizeRequestTest.php
@@ -87,6 +87,27 @@ public function testPaymentMethodNonce()
87
'paymentMethodNonce' => 'abc123'
88
)
89
);
90
+
91
+ public function testCustomerId()
92
+ {
93
+ $this->request->initialize(
94
+ array(
95
+ 'amount' => '10.00',
96
+ 'transactionId' => '684',
97
+ 'testMode' => false,
98
+ 'taxExempt' => false,
99
+ 'card' => array(
100
+ 'firstName' => 'Kayla',
101
+ 'shippingCompany' => 'League',
102
+ ),
103
+ 'customerId' => 'abc123'
104
+ )
105
+ );
106
107
+ $data = $this->request->getData();
108
+ $this->assertSame('abc123', $data['customerId']);
109
+ $this->assertArrayNotHasKey('customerId', $data);
110
+ }
111
112
$data = $this->request->getData();
113
$this->assertSame('abc123', $data['paymentMethodNonce']);
0 commit comments