Skip to content

Commit

Permalink
Fix wrong data mapped for startDate create recurring payment
Browse files Browse the repository at this point in the history
  • Loading branch information
ErvanAdetya committed Mar 5, 2020
1 parent db843e9 commit 1605714
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 2020-03-05

- Hotfix wrong data mapped for startDate recurring payment

## 2020-02-07

- Hotfix index definition file
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xendit-node",
"version": "1.0.2",
"version": "1.0.3",
"description": "NodeJS client for Xendit API",
"main": "index.js",
"types": "index.d.ts",
Expand Down
4 changes: 1 addition & 3 deletions src/recurring/manage_payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ function createPayment(data) {
should_send_email: data.shouldSendEmail,
missed_payment_action: data.missedPaymentAction,
credit_card_token: data.creditCardToken,
start_date: data.expirationDate
? data.expirationDate.toISOString()
: undefined,
start_date: data.startDate ? data.startDate.toISOString() : undefined,
success_redirect_url: data.successRedirectURL,
failure_redirect_url: data.failureRedirectURL,
recharge: data.recharge,
Expand Down

0 comments on commit 1605714

Please sign in to comment.