#pure_docs
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1232865288077185024
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there,
- No, there's no reference-only currency conversion
- I don't see how manual capture can make a difference in terms of currency conversion, can you elaborate?
There's a restriction listed here that adaptive pricing does not apply if you use manual capture mode.
Ok, then you can't do manual capture with adaptive pricing. I don't see an alternative here
Hi there, do we have ach_debit - ACH Payment gateway support in javascript sdk for nestjs and react. https://docs.stripe.com/payments/quickstart i checked using sample code but i am unable to use it
https://docs.stripe.com/payments/ach-debit/accept-a-payment?web-or-mobile=web&payments-ui-type=direct-api you can find example code in node.js here
what about apple pay and google pay?
Are you using payment element?
const paymentIntent = await stripe.paymentIntents.create({
amount: calculateOrderAmount(items),
currency: "usd",
payment_method_types: ["sepa_debit"]
});
res.send({
clientSecret: paymentIntent.client_secret,
});
}
i was creating payment intents
If you are using payment element, it'd support both ach direct debit and card payments (including apple pay and google pay)
ok can we have any sample code for this
using javascript sdk it is not possible? currently how may payment methods are supported in this
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements follow this guide. payment-element is already included in Stripe.js SDK.
i was trying for ach , google pay , apple pay export default async function handler(req, res) {
const { items } = req.body;
//sepa_debit
// Create a PaymentIntent with the order amount and currency
const paymentIntent = await stripe.paymentIntents.create({
amount: calculateOrderAmount(items),
currency: "usd",
payment_method_types: ["sepa_debit"]
});
res.send({
clientSecret: paymentIntent.client_secret,
});
} it is not working for me
can you provide target codes to load UI for ach , google pay , apple pay
Can you share with me your frontend code?
Aslo you only included sepa_debit in payment_method_types, so payment element will only render sepa debit
Also for apple pay you need to register your domain https://docs.stripe.com/apple-pay?platform=web#verify-domain and serve the page through https
and for Google pay you need to serve your webpage through https
backend code
Once you complete the above, you also need to add valid card to your Apple Pay and Google Pay wallets respectively.
can you send me sample code
I've already shared with you the link to sample code. As I explained earlier, google pay and apple are not showing in your page because
- you only included sepa_debit in payment_method_types
- you haven't completed the pre-requistites for google pay and apple pay.
apple pay and google pay prerequiste steps
It's the same link that I shared earlier https://docs.stripe.com/apple-pay?platform=web#verify-domain
And this is for google pay https://docs.stripe.com/google-pay?platform=web