Skip to content

Commit

Permalink
fix: continue_success_url is not base64
Browse files Browse the repository at this point in the history
  • Loading branch information
seanghay committed Jan 2, 2024
1 parent 1f08758 commit 5c6acb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ class PayWayClient {
if (typeof return_url === 'string') return_url = base64(return_url);
if (typeof return_deeplink === 'string') return_deeplink = base64(return_deeplink);
if (typeof return_deeplink === 'object' && return_deeplink != null) return_deeplink = base64(JSON.stringify(return_deeplink));
if (typeof continue_success_url === 'string') continue_success_url = base64(continue_success_url);


const response = await this._client.post(
"/api/payment-gateway/v1/payments/purchase",
// order matters here
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "payway",
"description": "An unofficial client for ABA PayWay",
"version": "0.1.2",
"version": "0.1.3",
"main": "index.js",
"repository": "seanghay/payway-js",
"keywords": [
Expand Down

0 comments on commit 5c6acb5

Please sign in to comment.