- cUrl
- Node.js
- PHP
- Ruby
-
curl -X POST 'https://sandbox.ebanxpay.com/ws/request' \ -d 'integration_key=your_test_integration_key_here' \ -d 'name=José Silva' \ -d 'email=josesilva@example.com' \ -d 'country=br' \ -d 'payment_type_code=_all' \ -d 'merchant_payment_code=d59cb7166e7' \ -d 'currency_code=BRL' \ -d 'amount=100'
-
const module = require('ebanx'); const ebanx = new module(); ebanx.configure({ integrationKey: "your_test_integration_key_here", testMode: true }); const params = { name : "José Silva", email : "josesilva@example.com", country : "br", payment_type_code : "_all", merchant_payment_code : "8a61e0ce488", currency_code : "BRL", amount : "100.00" }; ebanx.request(params, (err, reply) => { if (err) console.error(err); else console.log(reply); });
-
$config = new Config([ 'sandboxIntegrationKey' => 'your_test_integration_key_here', 'isSandbox' => true, 'baseCurrency' => Currency::USD ]); $payment = new Request([ 'person' => new Person([ 'email' => 'josesilva@example.com', 'name' => 'José Silva', ]), 'address' => new Address([ 'country' => Country::BRAZIL ]), 'amount' => 100.00, 'merchantPaymentCode' => 'd59cb7166e7', 'type' => '_all', ]); $result = EBANX($config)->hosted()->create($payment);
-
require 'ebanx' Ebanx.tap do |e| e.integration_key = 'your_test_integration_key_here' e.test_mode = true end response = Ebanx.do_request({ name: "José Silva", email: "josesilva@example.com", country: "br", payment_type_code: "_all", merchant_payment_code: "88e8870aee4", currency_code: "BRL", amount: "100.00" })