Search Overlay

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.

Vérifier l’accessibilité du service

boolean isOnline = apiClient.directDebitService().monitor();
                                

Achat par prélèvement automatique

Traiter un achat

Purchases purchaseresponse= Purchases.builder()
.merchantRefNum("ORDER_ID:1231")
.amount(10098)
.ach()
.accountHolderName("XYZ Company")
.accountType("CHECKING")
.accountNumber("988772192")
.routingNumber("211589828")
.payMethod("WEB")
.done()
.customerIp("192.0.126.111")
.profile()
.firstName("Joe")
.lastName("Smith")
.email("Joe.Smith@hotmail.com")
.done()
.billingDetails()
.street("100 Queen Street West")
.city("Los Angeles")
.state("CA")
.country("US")
.zip("90210")
.phone("3102649010")
.done()
.build();
Purchases response = apiClient.customerVaultService().submitPurchase(purchaseresponse);

Purchases purchaseresponse  = Purchases.builder()
.merchantRefNum("ORDER_ID:1235")
.amount(10038)
.ach()
.paymentToken(achBankAccounts.getPaymentToken())
.payMethod("WEB")
.done()
.build();
Purchases response = apiClient.customerVaultService().submitPurchase(purchaseresponse);

Purchases purchaseresponse = Purchases.builder()
.merchantRefNum(“ORDER_ID:1231”)
.amount(10098)
.eft()
.accountHolderName("XYZ Company")
.accountNumber(“336612”)
.transitNumber("22446")
.institutionId("001")
.done()
.customerIp("192.0.126.111")
.profile()
.firstName("Joe")
.lastName("Smith")
.email("Joe.Smith@hiotmail.com")
.done()
.billingDetails()
.street("100 Queen Street West")
.city("Los Angeles")
.state("CA")
.country("US")
.zip("90210")
.phone("6134491100")
.done()
.build();
Purchases response = apiClient.customerVaultService().submitPurchase(purchaseresponse);

Purchases purchaseresponse = Purchases.builder()
.merchantRefNum(“ORDER_ID:1231”)
.amount(10098)
.eft()
.paymentToken(eftBankAccounts.getPaymentToken())
.done()
.build();
Purchases response = apiClient.customerVaultService().submitPurchase(purchaseresponse);

Purchases purchaseresponse = Purchases.builder()
.merchantRefNum("ORDER_ID:1235")
.amount(10098)
.bacs()
.paymentToken("MlNZigR2IcPCyj4")
.done()
.build();
Purchases response = apiClient.customerVaultService().submitPurchase(purchaseresponse);

Purchases purchaseresponse = Purchases.builder()
.merchantRefNum("ORDER_ID:1235")
.amount(10098)
.sepa()
.paymentToken("Mk88c2UusFQQccm")
.done()
.build();
Purchases response = apiClient.customerVaultService().submitPurchase(purchaseresponse);

Annuler un achat

Purchases purchaseresponse = Purchases.builder()
.status("CANCELLED")
.id(Id.create("a02e52c7-c991-4418-966a-b62989cb0eae", Purchases.class))
.build();
Purchases response = apiClient.customerVaultService().cancelPurchase(purchaseresponse);

Rechercher un achat

Purchases purchaseresponse = Purchases.builder()
.id(Id.create("a02e52c7-c991-4418-966a-b62989cb0eae", Purchases.class))
.build();
Purchases response = apiClient.customerVaultService().getPurchase(purchaseresponse);

String merchantRefNum="20160421-5718a3da57e8a";
Filter f=new Filter();
f.setLimit(2);
Pagerator<Purchases> response = Purchases.builder()
.merchantRefNum("20160421-5718a3da57e8a")
.build(),f;
Purchases response = apiClient.customerVaultService().getPurchases(purchaseresponse);

Crédit autonome par prélèvement automatique

Traiter un crédit autonome

StandaloneCredits standaloneresponse = StandaloneCredits.builder()
.merchantRefNum(java.util.UUID.randomUUID().toString())
.amount(10098)
.ach()
.accountHolderName("XYZ Company")
.accountType("CHECKING")
.accountNumber("970778344")
.routingNumber("211589828")
.payMethod("WEB")
.done()
.customerIp("192.0.126.111")
.profile()
.firstName("Joe")
.lastName("Smith")
.email("Joe.Smith@hotmail.com")
.done()
.billingDetails()
.street("100 Queen Street West")
.city("Los Angeles")
.state("CA")
.country("US")
.zip("90210")
.phone("3102649010")
.done()
.build();
StandaloneCredits response = apiClient.customerVaultService().submitStandaloneCredit(standaloneresponse);

StandaloneCredits standaloneresponse = StandaloneCredits.builder()
.merchantRefNum("ORDER_ID:1235")
.amount(10038)
.ach()
.paymentToken(achBankAccounts.getPaymentToken())
.payMethod("WEB")
.done()
.build();
StandaloneCredits response = apiClient.customerVaultService().submitStandaloneCredit(standaloneresponse);

StandaloneCredits standaloneresponse = StandaloneCredits.builder()
.merchantRefNum(“ORDER_ID:1231”)
.amount(10098)
.eft()
.accountHolderName("XYZ Company")
.accountNumber(“336612”)
.transitNumber("22446")
.institutionId("001")
.done()
.customerIp("192.0.126.111")
.profile()
.firstName("Joe")
.lastName("Smith")
.email("Joe.Smith@hiotmail.com")
.done()
.billingDetails()
.street("100 Queen Street West")
.city("Los Angeles")
.state("CA")
.country("US")
.zip("90210")
.phone("6134491100")
.done()
.build();
StandaloneCredits response = apiClient.customerVaultService().submitStandaloneCredit(standaloneresponse);

StandaloneCredits standaloneresponse = StandaloneCredits.builder()
.merchantRefNum(“ORDER_ID:1231”)
.amount(10098)
.eft()
.paymentToken(eftBankAccounts.getPaymentToken())
.done()
.build();
StandaloneCredits response = apiClient.customerVaultService().submitStandaloneCredit(standaloneresponse);

StandaloneCredits standaloneresponse = StandaloneCredits.builder()
.merchantRefNum("ORDER_ID:1235")
.amount(10098)
.bacs()
.paymentToken("MlNZigR2IcPCyj4")
.done()
.build();
StandaloneCredits response = apiClient.customerVaultService().submitStandaloneCredit(standaloneresponse);

Annuler un crédit autonome

StandaloneCredits standaloneresponse = StandaloneCredits.builder()
.status("CANCELLED")
.id(Id.create("a02e52c7-c991-4418-966a-b62989cb0eae", StandaloneCredits .class))
.build();
StandaloneCredits response = apiClient.customerVaultService().cancelStandaloneCredit(standaloneresponse);

Rechercher un crédit autonome

StandaloneCredits standaloneresponse = StandaloneCredits.builder()
.id(Id.create("a02e52c7-c991-4418-966a-b62989cb0eae", StandaloneCredits .class))
.build();
StandaloneCredits response = apiClient.customerVaultService().getStandaloneCredit(standaloneresponse);

String merchantRefNum="20160421-5718a3da57e8a";
Filter f=new Filter();
f.setLimit(2);
Pagerator< StandaloneCredits > response = StandaloneCredits.builder()
.merchantRefNum("20160421-5718a3da57e8a")
.build(),f;
StandaloneCredits response = apiClient.customerVaultService().getStandaloneCredits(standaloneresponse);