Create a new instance of Payout object
This is how our body should look like:
You can prevent duplicate batches from being processed. If you specify a sender_batch_id
that was used in the last 30 days, the batch will not be processed. For items, you can specify a sender_item_id
. If the value for the sender_item_id
is a duplicate of a payout item that was processed in the last 30 days, the item will not be processed.
Please note that if you are using single payout with sync mode, you can only pass one Item in the request
There are many different ways of assigning values in PayPal SDK. Here is another way where you could directly inject json string.
One more way of assigning values in constructor when creating instance of PayPalModel object. Injecting array.
For Sample Purposes 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 Bulk Payout Sample
This sample code demonstrate how you can create a synchronous payout sample, as documented here at: https://developer.paypal.com/docs/integration/direct/create-batch-payout/ API used: /v1/payments/payouts