#jatinpatel0708
1 messages · Page 1 of 1 (latest)
<iframe id='giving-iframe' allow='payment' class='iframe-class ifram-scroll-infomain' style='width: 475px; height: 950px; border-radius: 10px;' src='https://www.givingx.com/org/forms/data/embedded/62dbbee30823f6d17c014992?lang=en' frameborder='0' scrolling='no' seamless='seamless'></iframe>
here is my iframe code,
Did you follow the steps to add domain for Apple Pay integration? Set up Apple Pay for your website step in: https://support.stripe.com/questions/enable-apple-pay-on-your-stripe-account
Yes, I am following this steps Apple Pay Button is working on the other page but here in the Iframe Apple Pay button is not showing
The above code is not Stripe related and I don't really know what it does
Can you share what you want to achieve?
we want to show Apple Pay Button on my Form
With Stripe integration, you should use Payment Request Button to show Apple Pay: https://stripe.com/docs/stripe-js/elements/payment-request-button
From the above eample, I don't see it using Payment Request Button
var paymentRequest = stripe.paymentRequest({
country: 'US',
currency: currencyVal,
total: {
label: 'GivingX Custom Fundraiser Software',
amount: parseInt( Math.round(stripe_amount) ),
},
requestPayerName: true,
requestPayerEmail: true,
});
var elements = stripe.elements();
var prButton = elements.create('paymentRequestButton', {
paymentRequest: paymentRequest,
});
// Check the availability of the Payment Request API first.
paymentRequest.canMakePayment().then(function (result) {
console.log(result);
if (result) {
prButton.mount('#payment-request-button');
} else {
document.getElementById('payment-request-button').style.display = 'none';
}
});
here is the payment-request-button code i am using it for the connected account
Did you implement Payment Request Button in a separate page and add it to the iframe of another page?
acct_1MuJnsGdhkL3rLC9
here is my connected account Id
I have added it in the Iframe page
Can you use Payment Request Button directly to the page instead of using iframe?
yes have use it without iframe but not working
https://www.givingx.com/org/forms/data/embedded/62dbbee30823f6d17c014992?lang=en'
you can check it here without iframe
Hi there
?
Thanks for waiting! Discord server is busy now
Where do I expect to see Apple Pay/Google Pay in the page? I don't see Google Pay either
You can see it on the next tab, click on the donate Button
here you can see Google Pay
How to remove this Link Option
You can disable Link option here: https://dashboard.stripe.com/settings/link
Can you disable Link and let me know, so that I can refresh your website again
done, please check
but still Apple Pay button is not showing
<iframe id='giving-iframe' allow='payment' class='iframe-class ifram-scroll-infomain' style='width: 475px; height: 950px; border-radius: 10px;' src='https://www.givingx.com/org/forms/data/embedded/62dbbee30823f6d17c014992?lang=en' frameborder='0' scrolling='no' seamless='seamless'></iframe>
is that any issue with the iframe When i put this iframe on the other platform the Button is not working
I can see it at my end
okay, when I put iframe on the other platform the Apple Pay Button is not showing, here is iframe please check and let me know how can I resolve this
<iframe id='giving-iframe' allow='payment' class='iframe-class ifram-scroll-infomain' style='width: 475px; height: 950px; border-radius: 10px;' src='https://www.givingx.com/org/forms/data/embedded/6487891d9f8926c66c05df80?lang=en' frameborder='0' scrolling='no' seamless='seamless'></iframe>
Is it the website that I should access to https://www.givingx.com/org/forms/data/embedded/6487891d9f8926c66c05df80?lang=en? If so, I can see Apple Pay
Hi River, it's showing on Givingx.com platform but when I put this iframe on the Other platform the Apple Pay button is not working:
i put this iframe on the W3school Platform: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe
<iframe id='giving-iframe' allow='payment' class='iframe-class ifram-scroll-infomain' style='width: 475px; height: 950px; border-radius: 10px;' src='https://www.givingx.com/org/forms/data/embedded/6487891d9f8926c66c05df80?lang=en' frameborder='0' scrolling='no' seamless='seamless'></iframe>
Does other platform share the same domain? Apple Pay will only work on the domain configured
the other platform is https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe
and the Apple Pay integration here on GivingX.com here is Iframe i am putting this iframe on the W3school platform
<iframe id='giving-iframe' allow='payment' class='iframe-class ifram-scroll-infomain' style='width: 475px; height: 950px; border-radius: 10px;' src='https://www.givingx.com/org/forms/data/embedded/6487891d9f8926c66c05df80?lang=en' frameborder='0' scrolling='no' seamless='seamless'></iframe>
Apple Pay doesn't work in iframes no
read https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html
When using an iframe, its origin must match the top-level origin. Two pages have the same origin if the protocol, host (full domain name), and port (if specified) are the same for both pages.
and
If you use the paymentRequestButton Element within an iframe, the iframe must have the allow attribute set to equal “payment *”.
so unless your page that is showing the iframe is on the same domain name (e.g. www.example.com) as the page where you host the payment page, it simply won't work
i have set “payment *” in the iframe but it not working
we want to used Apple Pay button on the iframe, could you please help us to how it work
did you read and understand what I shared above about the domain needing to match?
yes, but i don't no how to match this in the iframe, could you please suggest me
Hi! I'm taking over this thread.
Hi Soma, please help me to fix this
If you have to use an iframe, then the website and the iframe mush have the same top-level domain. So if you website's domain is foobar.com, then the iframe must be also on foobar.com
the main issue is the website domain and iframe domain are diffrent,
Iframe domain is "https://givingx.com" and The hosted iframe domain is ex.https://w3school.com
yes, that's why it doesn't work.
is there any other option to work it
No, sorry.
okay
We've detected that you are not using Automatic Payment Methods. To manage payment methods from this page get the latest version of Checkout, Payment Element or Payment Links.
why this warning showing in my stripe account
Are you using Automatic Payment Methods?
Yes, when creating payment intent for Google Pay I set the "'automatic_payment_methods' => ['enabled' => true],"
And is that the only way you create payments with Stripe?
No, i am also using custom card payment,
when i am creating a card payment I am not using this 'automatic_payment_methods' => ['enabled' => true],"
it means when we create payment intent we need to add "'automatic_payment_methods' => ['enabled' => true],"
is right?
No, i am also using custom card payment, when i am creating a card payment I am not using this 'automatic_payment_methods' => ['enabled' => true],"
Then that explains why you see the warning in the Stripe dashboard
it means when we create payment intent we need to add "'automatic_payment_methods' => ['enabled' => true]," is right?
That's completely up to you. If you only accept card payments, then no need to do this.
for the ACH payment?
What do you mean?
for the ACH payment w have to use 'automatic_payment_methods' => ['enabled' => true]," and how can we resolve this :
We've detected that you are not using Automatic Payment Methods. To manage payment methods from this page get the latest version of Checkout, Payment Element or Payment Links.
You don't have to "resolve it". It's just Stripe telling you that you are not using 'automatic_payment_methods' => ['enabled' => true]," all the time, which is fine.
Okay, Thanks
Happy to help 🙂
if I add 'automatic_payment_methods' => ['enabled' => true]," in all the Payment Intent create then is that any issue
Again, you don't have to do this. But yes I think it should work. I would recommend doing some tests i test mode just to be sure.
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!