B

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

  • Thread starter Thread starter BubbaLovesCheese
  • Start date Start date

Visitor Greeting

Welcome to NullWarehouse.com... We are currently seeking Mod's and Contributors. If you wish to apply for a Mod position then please click on Members dropdown arrow, then click on Staff App and fill it out completely and submit it. If you want to be a Contributor then start contributing and we will have our eye on you and take notice, something great could come of it.

  • We have redone the forum. If you notice any issues or errors please open a Support Ticket under the Members dropdown and let us know.
B

BubbaLovesCheese

Guest

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...
 
Similar content Most view View more
Back
Top Bottom