Prélèvement automatique
Vous pouvez intégrer votre application de commerce électronique directement à notre API Prélèvement automatique agnostique de plateforme et traiter les achats et les crédits par le biais d’une variété de systèmes bancaires.
Cliquez sur les liens ci-dessous pour voir nos exemples de code.
Purchases purchase = Purchases.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(999999999)
.ach()
.accountHolderName("computadora")
.accountNumber(getRandomNumber())
.accountType("CHECKING")
.routingNumber("211589828")
.payMethod("WEB")
.Done()
.customerIp("192.0.126.111")
.profile()
.firstName("John")
.lastName("Smith")
.email("john.smith@somedomain.com")
.Done()
.billingDetails()
.street("100 Queen Street West")
.city("Los Angeles")
.state("CA")
.country("US")
.zip("90210")
.phone("3102649010")
.Done()
.Build();
Purchases response = client.directDebitService().submit(purchase);
Purchases response = client.directDebitService().submit(Purchases.Builder()
.merchantRefNum(account.merchantRefNum())
.amount(10038)
.ach()
.paymentToken(account.paymentToken())
.payMethod("WEB")
.Done()
.Build());
Purchases purchase = Purchases.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(10098)
.eft()
.accountHolderName("XYZ Company")
.accountNumber(getRandomNumber())
.transitNumber("22446")
.institutionId("001")
.Done()
.customerIp("192.0.126.111")
.profile()
.firstName("John")
.lastName("Smith")
.email("john.smith@somedomain.com")
.Done()
.billingDetails()
.street("100 Queen Street West")
.city("Ottawa")
.state("ON")
.country("CA")
.zip("M1M1M1")
.phone("6139991100")
.Done()
.Build();
Purchases response = client.directDebitService().submit(purchase);
Purchases response = client.directDebitService().submit(Purchases.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(10038)
.eft()
.paymentToken(account.paymentToken())
.Done()
.Build());
Purchases response = client.directDebitService().submit(Purchases.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(10038)
.bacs()
.paymentToken(account.paymentToken())
.Done()
.Build());
Purchases response = client.directDebitService().submit(Purchases.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(10038)
.sepa()
.paymentToken(account.paymentToken())
.Done()
.Build());
Purchases response = client.directDebitService().cancel(Purchases.Builder()
.status("CANCELLED")
.id(purchase.id())
.Build());
Purchases response = client.directDebitService().get(Purchases.Builder()
.id(purchase.id())
.Build());
Pagerator<Purchases> response = client.directDebitService().getPurchase(Purchases.Builder()
.merchantRefNum(purchase.merchantRefNum())
.Build());
StandaloneCredits standalonecredit = StandaloneCredits.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(10000)
.ach()
.accountHolderName("John Smith")
.accountNumber("983417698")
.accountType("CHECKING")
.routingNumber("211589828")
.payMethod("WEB")
.Done()
.customerIp("192.0.126.111")
.profile()
.firstName("John")
.lastName("Smith")
.email("john.smith@somedomain.com")
.Done()
.billingDetails()
.street("100 Queen Street West")
.city("Los Angeles")
.state("CA")
.country("US")
.zip("90210")
.phone("3102649010")
.Done()
.Build();
StandaloneCredits response = client.directDebitService().submit(standalonecredit);
StandaloneCredits response = client.directDebitService().submit(StandaloneCredits.Builder()
.merchantRefNum(account.merchantRefNum())
.amount(10038)
.ach()
.paymentToken(account.paymentToken())
.payMethod("WEB")
.Done()
.Build());
StandaloneCredits standalonecredit = StandaloneCredits.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(10098)
.eft()
.accountHolderName("John Smith")
.accountNumber(getRandomNumber())
.transitNumber("22446")
.institutionId("001")
.Done()
.customerIp("192.0.126.111")
.profile()
.firstName("John")
.lastName("Smith")
.email("john.smith@somedomain.com")
.Done()
.billingDetails()
.street("100 Queen Street West")
.city("Los Angeles")
.state("CA")
.country("US")
.zip("90210")
.phone("3102649010")
.Done()
.Build();
StandaloneCredits response = client.directDebitService().submit(standalonecredit);
StandaloneCredits response = client.directDebitService().submit(StandaloneCredits.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(10038)
.eft()
.paymentToken(account.paymentToken())
.Done()
.Build());
StandaloneCredits standalonecredit = StandaloneCredits.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(10000)
.bacs()
.paymentToken(account.paymentToken())
.Done()
.Build();
StandaloneCredits standalonecredit_response = client.directDebitService().cancel(StandaloneCredits.Builder()
.status("CANCELLED")
.id(response.id())
.Build());
StandaloneCredits response = client.directDebitService().get(StandaloneCredits.Builder()
.id(response.id())
.Build());
Pagerator<StandaloneCredits> response = client.directDebitService().getStandaloneCredits(StandaloneCredits.Builder()
.merchantRefNum(standalonecredits.merchantRefNum())
.Build());