#Calmcup-checkout-branding

1 messages ยท Page 1 of 1 (latest)

heavy torrent
#

Hello ๐Ÿ‘‹
Can you share the code snippet for the styling?

barren spire
heavy torrent
#

thats what you'd need ^

#

It also has the part about adding a billing country

#

I don't think you can disable zip code collection though

barren spire
#

thanks a lot, I'll check that out

heavy torrent
#

NP! ๐Ÿ™‚ Good luck

barren spire
#

so I'm using

        paymentIntentClientSecret: clientSecret,
        testEnv: true,
        style: "alwaysDark",
        googlePay: true,
        applePay: true,
        merchantDisplayName: "My merchant name",
        primaryButtonColor: "#d21b89",
        customFlow: false,
        billingDetails: {
          email: "foo@bar.com",
          address: {
            country: "DE",
          },
        },
      });```
and I still see the default blue colour of the button and United States for a country
heavy torrent
#

Give me a moment to look into it thanks

#

is your PaymentIntent currency in usd?

barren spire
#

it is eur

heavy torrent
#

hmm thinking....

barren spire
#

the payment intent has automatic payment methods, currency:eur and amount:1999 and the button text is correctly displayed as 'Pay โ‚ฌ19.99'

heavy torrent
#

can you share the PaymentIntent ID just in-case?

barren spire
#

let me get it for you

heavy torrent
#

can you also share a screenshot of the PaymentSheet?

barren spire
#

pi_3L0XIuLHypYrxT5S1AlN4r2X

#

sure, just a second

heavy torrent
#

Thanks. What's the library version?

barren spire
#

"@stripe/stripe-react-native": "0.2.2",
installed using expo install with expo sdk 43

heavy torrent
#

Can you quickly test something? does it work if you change billingDetails to defaultBillingDetails ?

barren spire
#

no problem, but there seems to be no change

dire fossil
#

Hi there ๐Ÿ‘‹ taking over for @heavy torrent. Let me dig into this thread a bit with a teammate and get back to you in a few

wheat sentinel
#

๐Ÿ‘‹ can you provide your init code with it updated to defaultBillingDetails?

barren spire
#

hi, I've just changed the property name, it is now:

        paymentIntentClientSecret: clientSecret,
        testEnv: true,
        style: "alwaysDark",
        googlePay: true,
        applePay: true,
        merchantDisplayName: "My merchant name",
        primaryButtonColor: "#d21b89",
        customFlow: false,
        defaultBillingDetails: {
          email: "foo@bar.com",
          address: {
            country: "DE",
          },
        },
      });```
wheat sentinel
#

Working fine for me on the latest version of the SDK

#

Let me spin up my older version and test there

#

Not aware of us changing anything with regards to this in newer versions of the SDK

#

Of course my old app is just completely crashing without any sort of error. Classic. Can you comment out everything but the clients secret and the defaultbillingdetails?

barren spire
#

ok let me try that

#

I'm getting When a Configuration is passed to PaymentSheet, the Merchant display name cannot be an empty string. so I've added the name too

#

yeah I'm getting just the same result

wheat sentinel
#

Ugh actually I think I do know

#

And it is version

#

Try addressCountry instead

#

Without the address object

#

So defaultBillingDetails: {addressCountry: 'DE'}

barren spire
#

that fixed the country

#

๐Ÿ‘ ๐Ÿ”

#

is there a way to fix the colour of the pay button?

wheat sentinel
#

Forgot those also affected PaymentSheet

#

Button color was added in 0.2.3

#

I think expo 44 is on 0.2.3?

#

So if you upgrade you should be able to access button color

barren spire
#

nice, I think I can upgrade to expo 44 easily

#

but 45 is still pretty broken btw ๐Ÿ˜„

wheat sentinel
#

Yeah... really can't wait for 45 to be stable as there have been a lot of bug fixes in our SDK

#

You'll want to double check which version 44 matches to

#

I think it is 0.2.3 but I can't quite remember

#

And it isn't stated in our changelog for some reason

barren spire
#

ok thank you! I'll check that out now

barren spire
#

it's billingDetails.address.country in 0.2.3 and the primaryButtonColor is there too ๐Ÿ‘ thanks a lot for your help again

#

just ot confirm with you, is there any way to hide the country from the payment sheet altogether?

wheat sentinel
#

I don't believe so

barren spire
#

even if it's not mandatory/validated that we have a zip for a country

wheat sentinel
#

We collect it because it is needed for the best authorization rates based on country

#

Let me double check

#

Oh wait

#

It is required for formatting and knowing requirements I believe

#

Like which ones require Zip or not

barren spire
#

yeah so that's based on the country input and not on card metadata?

wheat sentinel
#

Yeah we don't modify the sheet based on the card input and it would be too late to do that on "pay"

barren spire
#

understood

#

thank you