Skip to content

Commit

Permalink
console paymenrequest
Browse files Browse the repository at this point in the history
  • Loading branch information
prachigarg19 committed Nov 22, 2023
1 parent cd00b92 commit 1966965
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Donations/PaymentMethods/PaymentRequestCustomButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ PaymentButtonProps): ReactElement | null => {
requestPayerName: true,
requestPayerEmail: true,
});
console.log(pr);
// Check the availability of the Payment Request API.
pr.canMakePayment().then((result) => {
if (result) {
setPaymentRequest(pr);
}
console.log(result);
});
}
}, [stripe, paymentRequest, country, currency, amount]);
Expand All @@ -88,6 +88,7 @@ PaymentButtonProps): ReactElement | null => {
}, [country, currency, amount]);

useEffect(() => {
console.log(paymentRequest);
let subscribed = true;
if (paymentRequest) {
paymentRequest
Expand Down

0 comments on commit 1966965

Please sign in to comment.