Giropay Beta
Start accepting payments using Giropay, a favorite payment method in Germany.
Giropay provides the ability to make purchases online through quick and easy bank transfers that are both secure and guaranteed.
Information
Model | Collecting |
Payment flow | Redirect |
Payment method type | Online banking |
One-step payment | |
Authorization | |
Capture | |
Refund | |
Partial refund | |
Chargeback | |
Recurring payment |
Overview
Giropay payments follow a two-step process:
Request a payment
Use the details below to set up your request.
Endpoints
You can find the full list, as well as complete request and response examples, in our API reference.
https://api.checkout.com/payments
Request example
1{2 "source": {3 "type": "giropay",4 "purpose":"Mens black t-shirt L"5 },6 "amount": 1914,7 "currency": "EUR",8 "success_url": "http://example.com/payments/success",9 "failure_url": "http://example.com/payments/failure"10}
If a customer ID or email is not provided in the request, we automatically create a customer profile and return the customer id
in the response.
Response example
If you receive a 202 Success
response containing a status field set to Pending
, your request was successful.
1{2 "id": "pay_d3ohhwwu3qderfjlzitknc26sq",3 "status": "Pending",4 "customer": {5 "id": "cus_hfgq4ctsnr6e3cfhq5ctwb5gtu"6 },7 "_links": {8 "self": {9 "href": "https://api.sandbox.checkout.com/payments/pay_d3ohhwwu3qderfjlzitknc26sq"10 },11 "redirect": {12 "href": "https://ftg-customer-integration.giropay.de/ftgbank/b/bankselection/219499703994809788;jsessionid=8ECFE1809F9BAB6635EC9D37D98A1CAE.sf-testapp01tom21?op=001"13 }14 }15}
Redirect the customer
Redirect your customer to the redirect
link’s href in the response. The link will send them to a Giropay page where they can select their bank.
Once they've selected a bank, they'll be transferred to the specified bank's page to enter their authorization details. If successful, the payment can be approved and the customer is either redirected to your predefined success or failure URL.
Confirmation of a Giropay payment is only communicated through webhooks. All payments are labeled as Pending until you receive a payment_captured
webhook notification (response code 10000
), indicating a successful transaction.
Get details about a payment
Retrieve details about an existing Giropay payment with the following endpoint.
Endpoints
You can find the full list, as well as complete request and response examples, in our API reference.
https://api.checkout.com/payments/{id}
Response example
1{2 "id": "pay_iilqeu2rsdqedkvkjhl2rxgbvy",3 "created_on": "2018-03-28T14:50:26Z",4 "source": {5 "type": "giropay",6 "purpose": "Set of three masks",7 "bic": "TESTDETT421",8 "iban": "DE46940594210000012345",9 "account_holder_name": "Test GmbH & Co. KG"10 },11 "amount": 1914,12 "currency": "EUR",13 "payment_type": "Regular",14 "status": "Captured",15 "flagged": false,16 "_links": {17 "self": {18 "href": "https://api.checkout.com/gateway/payments/pay_iilqeu2rsdqedkvkjhl2rxgbvy"19 }20 }21}
Refund a payment
Giropay supports both partial and full refunds. You can refund a payment through the Dashboard or using the refund API.
Cancel a payment
If the customer fails to complete their payment, we automatically void it and send a payment_expired
webhook.
However, if the customer explicitly cancels their payment, we send a payment_canceled
webhook instead.
Testing Giropay
Before you being testing, you'll need to create a test account and contact your Customer Success Manager to activate Giropay payments in your sandbox environment.
Once you're set up, follow the steps below to test:
- Create a Giropay transaction using the steps mentioned on this page and follow the redirect link in the response to Giropay's bank selection page.
- Select the bank ("Wählen Sie Ihre Bank aus"):
- BIC: TESTDETT421
- Name: Sparkasse Testinstitut-421 94059421 TESTDETT421.
- Select Weiter zu meiner Bank and wait until you're redirected to the bank's page.
- Log in with the following details:
- Anmeldename oder Legitimations-ID:
chiptanscatest2
- PIN:
12345
- Select Jetzt bezahlen to continue.
- Scroll to the end of the page, select Optischer TAN, and then select Jetzt bezahlen.
- Scroll to the end of the page again, enter
123456
in the TAN field, and select Login. - Select Weiter, enter
123456
in the TAN field, and then select Jetzt bezahlen. - If the above steps were successful, you should be redirected to your predefined success URL.