This is how to prevent Paypal asking for a shipping address via REST API

Status
This content is read-only, or is not open for further replies.

BubbaLovesCheese

Guest
offline
If you only sell User Upgrades, and you do NOT sell physical items, then you can prevent the newest Paypal Rest API from asking for a shipping address.

Just add this code 'shipping_preference' => 'NO_SHIPPING' just after Line 237 in your /src/XF/Payment/PayPalRest.php file on your server.

PHP:

Code:
protected function getSubscriptionParams(string $planId, PurchaseRequest $purchaseRequest, Purchase $purchase): array
{
    return [
        'plan_id' => $planId,
        'quantity'...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom