#youngza_
1 messages · Page 1 of 1 (latest)
You can store the PM on your parent account and then clone it down to each connected account when it needs to use the PM https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods
Keep in mind cloning only goes from parent to connected account, you cannot clone from connected to parent
Thank you that is super hepful!
Quick question about that doc
When you clone the payment method to you need to create it again?
PaymentMethodCreateParams params =
PaymentMethodCreateParams.builder()
.setCustomer("{{CUSTOMER_ID}}")
.setPaymentMethod("{{PAYMENT_METHOD_ID}}")
.build();
RequestOptions requestOptions =
RequestOptions.builder()
.setStripeAccount("{{CONNECTED_ACCOUNT_ID}}")
.build();
PaymentMethod paymentMethod = PaymentMethod.create(params, requestOptions);
in the example you create a new payment method
ah okay great!