Last updated
Last updated
If you're using , you can create a payment method for your app or website in four easy steps:
Build the PayCo Source Request and Details objects. The PayCo Source Request object requires the following fields.
The PayCo Source Details object requires the following fields.
Use the DigitalRiver.js library to create and mount elements to the HTML container.
When you create a Direct Debit source, the customer must authorize the charge through their payment provider. You can accomplish this by redirecting the customer to their payment provider.
Use the redirectUrl
parameter in your createSource
response to redirect your customer to the payment provider for authorization.
The payment provider will present the customer with the transaction details where they can authorize, or cancel the transaction. A successful authorization redirects the customer to the Payco Return URL parameter you specified when you created the source.
Once authorized, the source state will change to chargeable
.
The address
object must contain and data that .
Once authorized, you can use the source by or
See for testing instructions.
Learn how to configure PayCo for DigitalRiver.js with Elements.
type
payco
sessionId
The payment session identifier.
owner
An Owner object.
payco
returnUrl
Required
If you choose to use the full redirect flow, this is where you will redirect your customer to after authorizing or canceling within the PayCo experience.