Skip to content

Commit

Permalink
Fix paypal error with trailing slash on capture URL
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Aug 23, 2024
1 parent 8f8206b commit 200d559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/payment_setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@

async function onApprove(data, actions) {
try {
const response = await fetch(`/__/paypal/orders/${data.orderID}/capture`, {
const response = await fetch(`/__/paypal/orders/${data.orderID}/capture/`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit 200d559

Please sign in to comment.