You have no favorites... yet!
Use the Library tree on the left to select a Choreo to call from your gateway device.
Use the Library tree on the left to select a Choreo to call from your edge device via the gateway.
Library . PayPal . Payments . AcceptPayPalPayment
Creates a new PayPal payment which can then be approved and executed.
/*
TembooTask class placeholder
*/
/*
TembooTask header placeholder
*/
Since you've changed your device configuration, you'll need to tell us about this new device.
This feature is in experimental mode - pricing coming soon.
Send your code straight to a GitHub repository.
Your code will be visible by others in your repos. Keep credentials private by saving a Profile or commit code with Placeholder inputs.
The following files will be added to this repo:
You'll be able to edit and share your code from TI's CCS Cloud IDE.
The following will be sent to CCS Cloud:
/*
Your auto-generated code will appear here once you've configured your device above.
*/
/*
A header file containing your Temboo account information will appear here once you've
configured your device above.
*/
/*
Please log in to generate proxy server code for use with the JavaScript SDK.
*/
This Choreo creates a new PayPal payment which can then be approved and executed.
The ApprovalURL output variable will contain the 'redirect' URL that the buyer can go to in order to approve the payment. Once a payment has been approved, the user is redirected to the ReturnURL provided and a payer_id will be appended to the URL string. The payer_id is required for the final step of executing the payment. The PaymentID is also returned as a Choreo output variable so that it can be passed easily when executed the payment in the final step.
The documentation for this PayPal resource can be found here.
Here's an example list of acceptable inputs:
AccessToken: {YOUR ACCESS TOKEN}
ReturnURL: http://mydomain.com/return
CancelURL: http://mydomain.com/cancel
Currency: USD
Description: test desc
Total: 5.00
UseSandbox: 1
The following is a sample of the JSON information returned by this Choreo:
{ "id": "PAY-6RV70583SB702805EKEYSZ6Y", "create_time": "2013-03-01T22:34:35Z", "update_time": "2013-03-01T22:34:36Z", "state": "created", "intent": "sale", "payer": { "payment_method": "paypal" }, "transactions": [ { "amount": { "total": "7.47", "currency": "USD", "details": { "subtotal": "7.47" } }, "description": "This is the payment transaction description." } ], "links": [ { "href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-6RV70583SB702805EKEYSZ6Y", "rel": "self", "method": "GET" }, { "href": "https://www.sandbox.paypal.com/webscr?cmd=_express-checkout&token=EC-60U79048BN7719609", "rel": "approval_url", "method": "REDIRECT" }, { "href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-6RV70583SB702805EKEYSZ6Y/execute", "rel": "execute", "method": "POST" } ] }
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms