#sviatoslav_46367

1 messages ยท Page 1 of 1 (latest)

lapis mangoBOT
umbral goblet
#

I don't see 2233 as a test card. Where did you find that?

zinc wagon
#

fot this as well

umbral goblet
#

Do you have a pi_xxx you're trying to pay?

zinc wagon
#

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

umbral goblet
#

Do you have any code/logic beyond that?

zinc wagon
#

no

#

nothing

#

<apex:form id="card-form">
<div id="payment-request-button">
<!-- A Stripe Element will be inserted here. -->
</div>

#

only thiis view

umbral goblet
#

And creating an intent sever-side before that

zinc wagon
#

okay. I will try

#

as well not sending the code

umbral goblet
#

We don't in test mode. Just enter 000000

zinc wagon
#

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

umbral goblet
lapis mangoBOT
zinc wagon
#

i think I have to pass the aplePay object

#

isn't is?

#

sorry for bothering you so much)

neat frigate
#

๐Ÿ‘‹ taking over for my colleague.

#

did you check the prerequisites that my colleague shared above?

#

I'm not sure this is a code issue

zinc wagon
#

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*

neat frigate
#

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

zinc wagon
#

oky

#

thx

#

last question

#

as I understand , in order to process the payment with Apple/ Google pay / LInk I have to

#
  1. Create Payment Intent
  2. Approve this payment via payment request button (after success)
neat frigate
#

yes

#

but you also need to register and verify the domain

#

and all of the prerequisites in the link that my colleauge mentioned

zinc wagon
#

ong

#

omg

#

this is working

#

hah

#

nice

neat frigate
#

good ๐Ÿ™‚