Skip to content

Commit

Permalink
Merge pull request #60 from bushaHQ/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
abolajibisiriyu authored Jul 20, 2023
2 parents 213d66b + 8aa943e commit 86d88e0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
Binary file added cypress/downloads/downloads.html
Binary file not shown.
6 changes: 2 additions & 4 deletions example/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ <h1 class="text-center font-medium">Demo Payment Page</h1>
const email = document.getElementById("email").value

const payload = {
reference: document.getElementById("reference").value || `Demo_ref_${new Date().getTime()}`,
reference: document.getElementById("reference").value || `ref_${new Date().getTime()}`,
public_key: document.getElementById("public_key").value,
local_amount: Number(document.getElementById("local_amount").value),
local_currency: document.getElementById("local_currency").value,
onClose: () => {
console.log("Payment cancelled!");
document.getElementById("reference").value = `Demo_ref_${new Date().getTime()}`
document.getElementById("reference").value = `ref_${new Date().getTime()}`
},
onSuccess: (d) => {
console.log(d);
Expand All @@ -214,8 +214,6 @@ <h1 class="text-center font-medium">Demo Payment Page</h1>
}

BushaCommerce(payload)

// console.log(res);
}
})

Expand Down
2 changes: 1 addition & 1 deletion output/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/index.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"name": "@busha/commerce-js",
"description": "Busha commerce js library",
"version": "1.0.12",
"version": "1.0.13",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"directories": {
Expand Down

0 comments on commit 86d88e0

Please sign in to comment.