#hammad-khan_code
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/1285972059347882061
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, what error is being thrown?
Hi,
Give me a minue
Here is the payment methods
PaymentMethodTypes = new List<string> { "card","googlepay", "klarna" },
Invalid payment_method_types[1]: must be one of card, acss_debit, affirm, afterpay_clearpay, alipay, au_becs_debit, bacs_debit, bancontact, blik, boleto, cashapp, customer_balance, eps, fpx, giropay, grabpay, ideal, klarna, konbini, link, multibanco, oxxo, p24, paynow, paypal, pix, promptpay, sepa_debit, sofort, swish, us_bank_account, wechat_pay, revolut_pay, mobilepay, zip, amazon_pay, or twint
Getting the above error
Ah gotcha, apple and google pay aren't separate payment methods, they are under the card umbrella
so if I add "card" as a payment method then it means google and apple pay will be added?
Not necessarily, but that will get past your current error.
I am not that familiar with microsoft blazor. Can you tell me more about how you are building this? Is this essentially a webpage hosted at some URL on your server still? Or something else?
I am testing it locally, I am using stripe self hosted checkout page.
I can share a link with you after an hour
Gotcha, I was mostly confirming that your users will be visiting some kind of page with a URL on your server to make these payments
do you have any links where it shows how to add the google pay? I checked but I only found how to verify the domain
yes, they visit site, add products and then I redirec them to the checkout
That is exactly what I was going to link to https://docs.stripe.com/payments/payment-methods/pmd-registration
I have completed this step
Once you register your domain, Apple and Google Pay will start showing up in the Payment Element on your site
Unfortunatey it isn't possible to test with them on localhost sites but you can use a service like ngrok to get a temporary https URL that you can register and use to test on your local site
Yes it should as long as the domain is registered and card is in the intent's payment method types