#James-Customers
1 messages · Page 1 of 1 (latest)
👋 happy to help
when you say to get all of the existing customers details what do you mean by all? like what do you need?
this is the object https://stripe.com/docs/api/customers/object you receive when you retrieve https://stripe.com/docs/api/customers/retrieve a customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I want to take all information - name, email, all metadata, all payment details, all subscriptions etc etc. and port them to this new customer.
in an ideal world, i would just update the existing customers currency, but this does not appear to be possible according to the documentation
yes it's not possible to change the customer's currency
Yes. So is it possible, using the stripe Java library to effectively clone the customer object into a new entity, set the new customers currency and save that new customer object?
it's also not possible to clone the payment methods
you'd have to collect the payment methods of the customer
is that for only one customer or for multiple ones? is it in live mode?
this is not yet live. We have users sign up and are provisioned with a trial subscription in GBP as we do not know their currency at this point. During their trial we want them to be able to choose between GBP/USD/EUR for their invoices once their trial has finished.
are you collecting their payment method at that point?
No, but they may already have a payment method set at this point
The users will add their payment details during the trial
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
these are the use cases where we automatically set the customer's default currency
The customer is subscribed to a plan
An invoice is created for the customer
An invoice item is created for the customer
The customer’s balance is adjusted
A flat-rate coupon is attached to the customer (not a percent-off coupon)
if they are subscribed to a "price" that price already has a fixed currency and an invoice with a 0 amount and the currency of the price
if you want to delay the choosing of the price then I would say maybe not create the trial period in Stripe
do it separately
in your own system
and once the user chooses the currency then create the Subscription in Stripe
I'm just curious, any reasons why you're delaying the choice of currency?
We has, incorrectly, assumed that as no money had changed hands that stripe would allow the subscription to be updated to use a different price (currency) during the trial period
that, plus minimum required fields to get the customer using our product. Get them into the product and let them set up their billing/subscription details etc during the free tiral
if you're collecting their default payment method already at that point I assume you can already ask for what currency they prefer to pay with
We don't have a default payment method when the subscription is set up. It is created at sign-up then they have 14 days (trialing status) to set up a default payment method and add/update their subscription settings
ok then as I said it's not the worst thing in the world to handle the trial period outside of Stripe