#sviatoslav_46367
1 messages ยท Page 1 of 1 (latest)
I don't see 2233 as a test card. Where did you find that?
Do you have a pi_xxx you're trying to pay?
hmm
stripe = Stripe(publicKey);
//elements = stripe.elements();
const paymentRequest = stripe.paymentRequest({
country: 'US',
currency: 'usd',
total: {
label: 'Demo total',
amount: 1099,
},
requestPayerName: true,
requestPayerEmail: true,
});
const elements = stripe.elements();
const prButton = elements.create('paymentRequestButton', {
paymentRequest,
});
(async () => {
// Check the availability of the Payment Request API first.
const result = await paymentRequest.canMakePayment();
if (result) {
prButton.mount('#payment-request-button');
} else {
document.getElementById('payment-request-button').style.display = 'none';
}
})();
making like this
it is Stripe Web element
Do you have any code/logic beyond that?
no
nothing
<apex:form id="card-form">
<div id="payment-request-button">
<!-- A Stripe Element will be inserted here. -->
</div>
only thiis view
Well you will need code to actually handle the submission of the form: https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-complete-payment
And creating an intent sever-side before that
We don't in test mode. Just enter 000000
okay
thxxx
))
thank you , goint to implement other logic
maybe you know about apple/google pay?
can not find how to create this web element
They're supported in the Payment Request Button assuming you meet the prerequisites: https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-prerequisites
i think I have to pass the aplePay object
isn't is?
sorry for bothering you so much)
๐ taking over for my colleague.
did you check the prerequisites that my colleague shared above?
I'm not sure this is a code issue
yes, I saw response, with error, but I will fixed this , it is related to my side
have ony question about apple and google pay
only*
no that's not the error
if you're not seeing Apple Pay it could be because the browser+wallet might not be compatible
that's why you're seeing only Link
oky
thx
last question
as I understand , in order to process the payment with Apple/ Google pay / LInk I have to
- Create Payment Intent
- Approve this payment via payment request button (after success)
yes
but you also need to register and verify the domain
and all of the prerequisites in the link that my colleauge mentioned
good ๐