Giropay
Create a Charge

Giropay Charge

Use the Charge API to initiate a new payment instead of using this method. Confirmation of the PaymentIntent creates the Charge object used to request payment, so this method is limited to legacy integrations.

Create A Charge

We recommend using our recommended payments integrations to perform the tokenization process client-side. This ensures that no sensitive card data touches your server and allows your integration to operate in a PCI-compliant way. By using client-side tokenization, you benefit from the following:

  • You need to tokenize the charge object before sending it to Axxonpay's Charge API.
  • You can refer to the tokenization page to handle the tokenization aspect by either using the Client Tokenization method or the Token API.
POST / v1 / process / giropay - payment;
const axios = require('axios');
 
// Define the request body
const dataObj = {
amount: 10000,
currency: 'EUR',
description: 'Payment for Service',
customer_id: '<example client Id>',
name: 'John Smith',
email: 'johnsmith@gmail.com',
return_url: 'https://google.com',
remote_ip: '192.76.99.255',
postal_code: '94102',
line1: '986 Holloway Street',
line2: 'APT 781',
city: 'Los Angeles',
state: 'CA',
country: 'US',
};
 
const headers = {
authorization: 'key\_<Your-Key>'
};
 
// Make the POST request
const response = await axios.post('https://<axxonpay-url-gateway>/v1/process/giropay-payment', dataObj, { headers });
 

Parameters

ParameterRequired/OptionalTypeDescription
amountREQUIREDNumberAmount intended to be collected by this Charge. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
currencyREQUIREDStringThree-letter ISO currency code, in lowercase. Must be a supported currency ["EUR"].
customer_idOPTIONALStringID of the Customer this Charge belongs to, if one exists. Payment methods attached to other Customers cannot be used with this Charge. If present in combination with setup_future_usage, this Charge's payment method will be attached to the Customer after the Charge has been confirmed and any required actions from the user are complete.
checkout_idOPTIONALStringID of the Payment this Charge belongs to.
descriptionOPTIONALStringAn arbitrary string attached to the object. Often useful for displaying to users.
line1REQUIREDStringFirst line of the address associated with the card used for the charge.
line2REQUIREDStringSecond line of the address associated with the card used for the charge.
postal_codeREQUIREDStringPostal code of the address associated with the card used for the charge.
cityREQUIREDStringCity of the address associated with the card used for the charge.
countryREQUIREDStringCountry of the address associated with the card used for the charge.
emailREQUIREDStringEmail address of the customer associated with the charge.
nameREQUIREDStringName of the customer associated with the charge.
stateREQUIREDStringState of the address associated with the card used for the charge.
return_urlREQUIREDStringREQUIRED IN FOR REDIRECT AFTER PAYMENT IS SUCCESSFUL OR CANCELED
remote_ipREQUIREDStringIP address of the customer making the charge.