#temppeck-connect

1 messages · Page 1 of 1 (latest)

ripe walrus
#

Hi! Can you clarify your question? Are you using stripe Connect? What exactly stopped working? What are you trying to do?

dusky quiver
#

we are getting 'refused payments' because its not using SCA. Payments we take on other sites use SCA and webhooks. I can't set up a webhook on their account to do the same thing so all I can do is work it out from a 'collected fee' message sent to my webhook.
Is a 'collected fee' message sent to my webhook? Is that the only way to do it and validate the sale?

ripe walrus
#

I'm sorry but I still don't understand. I don't see the link between SCA and webhook for 'collected fee'.

#

Are you trying to solve the "refused payments because its not using SCA"? If so can you share a payment ID?

dusky quiver
#

Sorry for not explaining it properly.
Basically we are not using SCA - but we should be.
I'm trying to figure out the best way to use SCA in this scenario.

#

We sell on behalf of our customer - using their stripe accounts - and we get a collected fee.

#

We do not receive a 'payment complete' webhook because it through their account and not ours (so I can validate the payment and sent the products)

#

However we do receive a 'collected fee' webhook. Is this the only/best way to confirm the payment so I can release the product?

#

What if there was no fee on a particular sale for some reason?

#

Does that make sense?

#

But if there was a way to stop the payments failing (SCA required) for this scenario that would work too

ripe walrus
#

Thanks for the clarification!

I'm trying to figure out the best way to use SCA in this scenario.
How are you integration Stripe right now? Checkout Sessions, Payment Intent, Charges, something else?
We sell on behalf of our customer - using their stripe accounts - and we get a collected fee.
So are you using Stripe Connect?

dusky quiver
#

Yes stripe connect

#

and charges

Stripe::setApiKey("sk_live_********"); //My LIVE key
define(ACCESS_TOKEN, $client['stripe_access_token']);

$charge = Stripe_Charge::create(
    array(

"amount" => $total_value,
"currency" => $transactionCurrency,
"card" => $token,
"description" => "Order Number: ".$order_id,
"application_fee" => $our_cut
),

ripe walrus
dusky quiver
#

Yes - thats what I want to do - move over to the SCA payment method.
However - how do I tell if the payment went through if I can't get a webhook from the completed payment?

#

On my other sites with our own stripe account I make a payment intent and then wait for the webhook to "validate" the order and make sure the payment went through

\Stripe\Stripe::setApiKey($stripe_secret_key);

$intent = \Stripe\PaymentIntent::create([
'amount' => $total_total_inc_vat_in_cent,
'currency' => $order->currency,
'statement_descriptor' => "Order: $order_id",
'description' => "$order_id",
'metadata' => ['order_id' => $order_id, 'order_type' => '3XM' ],
'customer' => $client->getStripeCustomerID()

then wait for the webhook

This all works perfectly

#

However with stripe connect I don't get a "payment__intent_" or "payment_succeeded" webhook so I don't know the payment has gone through successfully

#

Basically - how do I do this with a "connected account" ?

earnest quiver
#

you set up a specific endpoint that receives webhook events relating to objects that are created on connected accounts