#kiwimarc-retrieve-payment-methods

1 messages ยท Page 1 of 1 (latest)

rich fox
rapid folio
#

I tried that, because thats how I have done it in all the other api calls but here it just dont want to work

rich fox
#

How is that request structured in your PHP code? Could you share that snippet?

rapid folio
#
// Get Stripe Card
function stripe_customer_card($customer_guid, $user_id) {
  $config = get_config();

  $stripe = new \Stripe\StripeClient($config['seckey']);
  
  return $stripe->customers->retrieve($customer_guid,["stripe_account" => get_user_info($user_id,'stripe')['key_value']]);
}
rich fox
#

Can you add an empty array between $customer_guid and the array that has the stripe_account parameter? Similar to what you see in the example snippet where a charge is being retrieved.

rapid folio
#

oh that works

#

Thanks!

#

I just haven't done it before with the empty array