Fill in all the information that is required for invoice APIs
A resource representing merchant information that can be used to identify merchant
This would be the email address of third party merchant.
The address used for creating the invoice
Set the email address for each billing
You could provide the list of all items for detailed breakdown of invoice
For Sample Purposes Only.
This would be refresh token retrieved from http://paypal.github.io/PayPal-PHP-SDK/sample/doc/lipp/ObtainUserConsent.html
MerchantInfo.Email
based onCreate an invoice by calling the invoice->create() method
with a valid ApiContext (See bootstrap.php for more on ApiContext
)
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
Create Third Party Invoice Sample
This sample code demonstrate how you can create third party invoice on someone else's behalf. This requires using
Obtain User's Consent
to fetch the refresh token of the third party merchant. Please look at http://paypal.github.io/PayPal-PHP-SDK/sample/doc/lipp/ObtainUserConsent.html for more info. You need the email address of the third party. This can be retrieved using the refresh token obtained from previous call. Please refere to http://paypal.github.io/PayPal-PHP-SDK/sample/doc/lipp/GetUserInfo.html for more info. Please make sure to usemerchantInfo.email
as the email address of the third party.