Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit ffd85f6

Browse files
committed
Shipping preference misspelling.
PayPal v2 Orders API documentation has this enum option as the singular "shipping_preference".
1 parent 666f2a6 commit ffd85f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: samples/AuthorizeIntentExamples/CreateOrder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ private static function buildRequestBody()
2525
'brand_name' => 'EXAMPLE INC',
2626
'locale' => 'en-US',
2727
'landing_page' => 'BILLING',
28-
'shipping_preferences' => 'SET_PROVIDED_ADDRESS',
28+
'shipping_preference' => 'SET_PROVIDED_ADDRESS',
2929
'user_action' => 'PAY_NOW',
3030
),
3131
'purchase_units' =>

Diff for: samples/CaptureIntentExamples/CreateOrder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private static function buildRequestBody()
2727
'brand_name' => 'EXAMPLE INC',
2828
'locale' => 'en-US',
2929
'landing_page' => 'BILLING',
30-
'shipping_preferences' => 'SET_PROVIDED_ADDRESS',
30+
'shipping_preference' => 'SET_PROVIDED_ADDRESS',
3131
'user_action' => 'PAY_NOW',
3232
),
3333
'purchase_units' =>

0 commit comments

Comments
 (0)