how to send payment to other account ? #25
Comments
Hey @kiro112 , as of now the receiver of the payment must have a client_id and client_secret i.e. they would need to have a merchant account with paypal. If you have multiple client id and client secrets, on the node sdk you could have them as var receivers = { Now, you could use them for creating payments. e.g. In samples/payment/create_with_credit_card.js, you could do paypal_api.payment.create(create_payment_json, receivers.receiver1, function (error, payment) { This would ensure that receiver1s credentials are used while creating the payment. Hope this helps. |
@kiro112 closing as this is the only currently existing way to transfer to different account via REST. Native support for configuring the receiver of the payment might be added in a future release of the APIs. |
Hi, Thanks |
@junaidvbase in his sample ( https://github.com/paypal/PayPal-node-SDK/blob/master/samples/payment/create_future_payment.js ) he has a "description" attribute, perhaps you can put the products detail through a json string ? sorry for my grammar. |
Yes you're right, but i want as the list, the description shows only a paragraph.not in a table or div format like invoice!. Thanks for you reply :) |
Hey @kiro112 with the release of the payouts api, you have the option to send a single or batch payout, allowing payments to be sent to single or multiple recipients. Here is a sample for single payout. Please reopen if this does not serve your use case. @junaidvbase it would be better to open a new issue if you are still encountering the problem. |
right now. i can send payment and the account that will receive tha payment is the account that handle/hold my data in the paypal configure(client_id, secret)..
i cant see any example/documentation that tell how to configure the receiver of the payment.
thanks
The text was updated successfully, but these errors were encountered: