#Calmcup-checkout-branding
1 messages ยท Page 1 of 1 (latest)
oh I did that in the UI here: https://dashboard.stripe.com/settings/branding
ah okay! I don't think those settings carry over to mobile apps
https://stripe.com/docs/payments/accept-a-payment?platform=react-native#react-native-customization
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
thanks a lot, I'll check that out
NP! ๐ Good luck
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
it is eur
hmm thinking....
the payment intent has automatic payment methods, currency:eur and amount:1999 and the button text is correctly displayed as 'Pay โฌ19.99'
can you share the PaymentIntent ID just in-case?
let me get it for you
can you also share a screenshot of the PaymentSheet?
Thanks. What's the library version?
"@stripe/stripe-react-native": "0.2.2",
installed using expo install with expo sdk 43
Can you quickly test something? does it work if you change billingDetails to defaultBillingDetails ?
no problem, but there seems to be no change
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
๐ can you provide your init code with it updated to defaultBillingDetails?
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",
},
},
});```
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?
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
Ugh actually I think I do know
And it is version
Try addressCountry instead
Without the address object
So defaultBillingDetails: {addressCountry: 'DE'}
that fixed the country
๐ ๐
is there a way to fix the colour of the pay button?
Gotcha, has to do with the changes here: https://github.com/stripe/stripe-react-native/blob/master/CHANGELOG.md#070
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
nice, I think I can upgrade to expo 44 easily
but 45 is still pretty broken btw ๐
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
ok thank you! I'll check that out now
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?
I don't believe so
even if it's not mandatory/validated that we have a zip for a country
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
yeah so that's based on the country input and not on card metadata?
Yeah we don't modify the sheet based on the card input and it would be too late to do that on "pay"