Initiating a Payment Using a Payment Consent
Once a payment consent is ACTIVE, you can use it to initiate payments on the customer's behalf without any further customer involvement.
To initiate a payment, call the Initiate Payment endpoint and include the consent_id in the provider_method_parameters.
Prerequisites
Before initiating a payment with a consent, make sure that:
- The consent is
ACTIVE— Only consents with the statusACTIVEcan be used. Consents in any other status will be rejected. - The provider and method match — The
providerandmethodin your payment request must match the ones the consent was created with. For example, a consent created withbankgirot/autogirocan only be used forbankgirot/autogiropayments.
Provider Method Parameters
| Provider | Method | Required Parameters | Description |
|---|---|---|---|
bankgirot | autogiro | consent_id | The ID of the active Autogiro consent. |
swish | recurring | consent_id, message | The ID of the active Swish consent and a message shown to the customer (max 50 characters). |
Examples
Bankgirot Autogiro
{
"amount": 10000,
"currency": "SEK",
"provider": "bankgirot",
"method": "autogiro",
"provider_method_parameters": {
"consent_id": "{{consent_id}}"
}
}Swish Recurring
{
"amount": 5000,
"currency": "SEK",
"provider": "swish",
"method": "recurring",
"provider_method_parameters": {
"consent_id": "{{consent_id}}",
"message": "Monthly subscription fee"
}
}Updated 4 days ago