#PushPressCEO -Tokenization-Connect

1 messages ยท Page 1 of 1 (latest)

near bramble
#

Putting your second message ehre

and I'm trying to figure out - can we tokenize a card, and pass in an actual card or bank account ID

#

Can you clarify what you mean here?

#

What do you want to pass where?

tough onyx
#

so we hold the token / card info on our connect side

#

and we tokenze for our clients to use each charge.

#

the issue I'm seeing is when we have a customer with two diff payment methods, it only tokenizes the default

#

so hoping you have something like this:

$payment_reference = \Stripe\Token::create([
"customer" => $billing->getApiCustomerReference(),
"card" => $billing->getApiPaymentReference()
],[
"stripe_account" => $stripe_account_id
]);

#

(we don't have the "card" option now)

near bramble
#

When you say "our connect side" do you mean your platform account?

tough onyx
#

yes

tough onyx
#

yes that's exactly what we're doing.. but check out the token part

#

it just tokenizes the default, but it mentions you can pass in a card or bank account to use that one

#

but I can't a definition for it

near bramble
#

Ah I see

#

Thank you for the clarification

#

Looking in to what to do here

tough onyx
#

thanks!

#

anything? ๐Ÿ™‚

near bramble
#

Still looking and testing

#

It looks like you can pass the card or bank account id as the card or bank account parameters card='card_123' and bank_account=ba_123 respectively

#

Can you try running that with one of those on your side?

tough onyx
#

yeah, on a call right now so I'll do that in a sec

near bramble
#

No worries, testing myself right now as well. Will let you know what I see

#

I have been able to make a tokens by passing in card='card_123'

#

So that should work and let you do the later steps

tough onyx
#

do you tink bank_account is needed or we can push it as card?

near bramble
#

Yes that would need to be sent as bank_account

tough onyx
#

ok great!

near bramble
#

Glad I could help. I do see how the docs are not clear in that aspect. I will see if we can get that to be clearer

tough onyx
#

thanks a ton!

tough onyx
#

haha did you charge to our Stripe Sandbox? ๐Ÿ™‚

#

just saw some chargesa nd I'm like Where did these come from lol

near bramble
#

I tested on my own account

#

Is there someone else who may have created those charges?