Skip to content

Commit

Permalink
Merge pull request #104 from xendit/fix/createChargeIssue
Browse files Browse the repository at this point in the history
Fix creditCardClient
  • Loading branch information
xen-HendryZheng authored Nov 25, 2021
2 parents f44b19b + ab5c845 commit 82c5cb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public CreditCardCharge createCharge(Map<String, Object> params) throws XenditEx

public CreditCardCharge createCharge(Map<String, String> headers, Map<String, Object> params)
throws XenditException {
String url = String.format("%s%s", Xendit.Opt.getApiKey(), "/credit_card_charges");
String url = String.format("%s%s", Xendit.Opt.getXenditURL(), "/credit_card_charges");
return this.requestClient.request(
RequestResource.Method.POST, url, headers, params, opt.getApiKey(), CreditCardCharge.class);
}
Expand Down

0 comments on commit 82c5cb5

Please sign in to comment.