Charges API
Charges API is a payment processing tool that allows businesses to accept and process online payments securely and efficiently. With this API, businesses can integrate payment processing functionalities into their websites, applications, and other software solutions.
It supports major payment methods, including credit cards, debit cards, and digital wallets. It also provides features such as real-time payment processing, automatic currency conversion, and fraud prevention.
All charges request 3DS to cardholder's bank by default.
Create a charge​
Endpoint
POST /v1/charges/simple/create/
Charge a valid endpoint crea un simple charge, en otras palabras, realiza un rebajo a la
tarjeta que venga en el POST, no está asignada a ningún customer
.
- Shell
- Python
- Javascript
curl 'https://api.4geeks.io/v1/charges/simple/create/' \
-X POST \
-H 'authorization: bearer PdSKf04xi9LEcvcwIAdbWAXVg380Kz' \
-F 'amount=800.55' \
-F 'description=Desc for Simple' \
-F 'entity_description=Desc for Simple' \
-F 'currency=usd' \
-F 'credit_card_number=4242424242424242' \
-F 'credit_card_security_code_number=123' \
-F 'exp_month=11' \
-F 'exp_year=2020'
gpayments.SimpleCharge.create(
amount=10.99,
description='Description',
entity_description='Entity Description',
currency='usd',
credit_card_number='4242424242424242',
credit_card_security_code_number=123,
exp_month=12,
exp_year=2020
)
await gpApi.charges.create({
amount: 90.32,
description: 'Plan 1 service charge',
entity_description: 'Plan 1',
currency: 'usd',
credit_card_number: 4242424242424242,
credit_card_security_code_number: 123,
exp_month: 11,
exp_year: 2020
})
Retorna:
HTTP 201 Created