#hammad-khan_code

1 messages ¡ Page 1 of 1 (latest)

eternal stagBOT
#

👋 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.

tight fractal
#

Hello, what error is being thrown?

rancid knoll
#

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

tight fractal
#

Ah gotcha, apple and google pay aren't separate payment methods, they are under the card umbrella

rancid knoll
#

so if I add "card" as a payment method then it means google and apple pay will be added?

tight fractal
#

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?

rancid knoll
#

I am testing it locally, I am using stripe self hosted checkout page.

#

I can share a link with you after an hour

tight fractal
#

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

rancid knoll
#

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

rancid knoll
tight fractal
rancid knoll
#

I have completed this step

tight fractal
#

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

rancid knoll
#

Ok.

#

Let me check it in 15 minutes

#

It will appear automatically?

tight fractal
#

Yes it should as long as the domain is registered and card is in the intent's payment method types