Disable shipping address option in PayPal Express Checkout

后端 未结 7 1735
温柔的废话
温柔的废话 2020-12-09 16:06

Working with the PayPal API and using the Name-Value Pair Interface PHP source codes from SDKs and Downloads: Simplify Integrations with Downloads and SDKs.

My quest

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 16:12

    Create a web profile based on the example found in the API: CreateWebProfile.php.

    $createProfileResponse = require  __DIR__ . '/CreateWebProfile.php';
    $payment = new Payment(); 
    $payment->setExperienceProfileId($createProfileResponse->getId());
    

    File path: paypal/rest-api-sdk-php/sample/payment-experience/CreateWebProfile.php

提交回复
热议问题