#slendie_api

1 messages ยท Page 1 of 1 (latest)

plain ivyBOT
#

๐Ÿ‘‹ 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/1334528598475800646

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

fickle chasm
#

What do you mean by 'changes don't reflect on my site'? What are you expecting to see versus what do you see?

unique cloud
#

Hi Guys, i have put SEPA direct debit has one of the payment method but it still doesnt show on my checkout payment

fickle chasm
#

@unique cloud please ask via #help

kindred crane
#

The button doesn't adjust to the new button type

#

Let me show you an example...

#

I set the google pay buttont type to "order". It should now say "Order with Google"

uneven wagon
#

Do you have a link to the checkout page so we can take a look?

#

Also can you share the complete client-side code you're using to initialize Elements and the Express Checkout Element?

plain ivyBOT
kindred crane
#

I'm running my site locally, so sadly I can't share a link to the site

uneven wagon
#

Express Checkout Element requires https though

kindred crane
#

But here's the code for my express checkout element

<ExpressCheckoutElement
   options={{
      paymentMethods: {
         googlePay: 'always',
         applePay: 'always',
      },
      buttonHeight: 40,
      layout: {
         overflow: 'never',
      },
      buttonType: {
        googlePay: 'order',
      },
   }}
   onConfirm={onConfirm}
   onShippingAddressChange=.   {onShippingAddressChange}
                
onShippingRateChange={onShippingRateChange}
                onClick={onClick}
                onCancel={onCancel}
                onLoadError={onLoadError}
                onReady={onReady}
#

We have a local environment set up to accommodate all that

burnt cedar
#

Hey there, just taking over for duchess as they need to step away

#

Hmm this does work for me and switch to "Order with G Pay" when i test it

kindred crane
#

๐Ÿค”

burnt cedar
#

Are those options params provided via a variable, or hardcoded props in the component?

kindred crane
#

The button type and payment methods parameters are hardcoded

#

Very strange, it's actually working for me now too! But it seems to be inconsistent, at least in my local environment

burnt cedar
#

Oh that's pretty odd

#

I wonder if its related to the logged-in state of google pay

#

since you're using always

kindred crane
#

Yeah perhaps. ut all good for now I guess

#

One more question - can you confirm the conditions we need to meet in order to show the paypal button via stripe express?

burnt cedar
#

You need to be using a qualified account generally, and not using setupFutureUsage -- saving PayPal for later is only supported ia payment element

#

So if you require phone collection, paypal can sometimes be disabled to avoid scenarios where you might not get a phone number

kindred crane
#

What is a "qualified account"?

burnt cedar
#

see business locations here

#

briefly: in europe

#

(eg, it is not supported for a US account)

kindred crane
#

And that's based on our business address?

#

We do have one account with a UK address, and the button still isn't shpwing up...does the buyer need to be located in Europe too?

burnt cedar
#

It's the country of your stripe account, yes based on your business location. if you have paypal as an option in your payment method settings, you should be fine.

burnt cedar
#

If you open your developer tools, when the elements are beign initialized you should see a request to /v1/elements/sessions -- can you open that request and get the request-id from the response headers?

kindred crane
#

I see paypal in the payment method settings, yeah

#

But...button isn't showing ๐Ÿ™ƒ

#

Definitely using the right merchant account

burnt cedar
#

Did you find that request ID?

kindred crane
#

One sec...

#

req_yhab29Kerpytxr

burnt cedar
#

๐Ÿคฆ

#

sorry, i missed this early on

#

You're specifying payment_method_types in your elements initialization, not using dynamic payment methods

#

In order for paypal to be including using this technique, you need to add it here

#

Otherwise you can remove payment_method_types to use let them be calculated automatically from your settings

kindred crane
#

Oh so I need to add "paypal" to that types array?

burnt cedar
#

yep

kindred crane
#

Ok one sec...

#

It worked, thank you!

burnt cedar
#

Nice! No problem, glad we got you sorted out ๐Ÿ™‚

kindred crane
#

One more question...

#

If I hardcode "paypa" in that array, might is cause any unforeseen issues down the line?

burnt cedar
#

Yes, that's possible

#

Which is why we recommend dynamic payment methods to let us calculate all the valid PM types for the payment configuration you use

kindred crane
#

Eh we have to set it manually right now do to business logic restictions

#

I guess we'll see wat happens. Thank you again