Skip to content

Commit

Permalink
Merge pull request #33 from paypal-examples/hosted-fields-order-id-re…
Browse files Browse the repository at this point in the history
…name

chore: update hosted-fields to use orderID naming convention
  • Loading branch information
devchristina authored Sep 28, 2023
2 parents c912d35 + 0a912eb commit c074d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/hosted-fields.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ <h1>PayPal Hosted Fields (Advanced Checkout)</h1>
hostedFieldsOrderData,
});

return onApprove(hostedFieldsOrderData.orderId);
return onApprove(hostedFieldsOrderData.orderID);
})
.catch((error) => {
console.error("failed to submit payment", error);
Expand Down

0 comments on commit c074d76

Please sign in to comment.