#youngza_

1 messages · Page 1 of 1 (latest)

rough flareBOT
leaden cloak
#

Keep in mind cloning only goes from parent to connected account, you cannot clone from connected to parent

upper merlin
#

Thank you that is super hepful!

upper merlin
#

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

leaden cloak
#

Yes, that PaymentMethod.create call is the cloning

#

So that call is required here

upper merlin
#

ah okay great!