Skip to content

Commit 6b42583

Browse files
authored
Merge pull request #153 from agjmills/form-ignores-shipping-address-shipping-name
SagePay Form ignores shipping fields if shipping{First|Last}Name is omitted
2 parents f71ec2b + 085315d commit 6b42583

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,8 @@ The `$creditCard` object will provide the billing and shipping details:
285285
use Omnipay\Common\CreditCard;
286286

287287
$creditCard = new CreditCard([
288-
'firstName' => 'Joe',
289-
'lastName' => 'Bloggs',
290-
//
288+
'billingFirstName' => 'Joe',
289+
'billingLastName' => 'Bloggs',
291290
'billingAddress1' => 'Billing Address 1',
292291
'billingAddress2' => 'Billing Address 2',
293292
//'billingState' => '',
@@ -299,6 +298,8 @@ $creditCard = new CreditCard([
299298
'email' => '[email protected]',
300299
'clientIp' => '123.123.123.123',
301300
//
301+
'shippingFirstName' => 'Joe',
302+
'shippingLastName' => 'Bloggs',
302303
'shippingAddress1' => '99',
303304
'shippingState' => 'NY',
304305
'shippingCity' => 'City1',

0 commit comments

Comments
 (0)