#richard_20727

1 messages · Page 1 of 1 (latest)

marble nacelleBOT
atomic drift
#

Hello! Yeah, can you share the Payment Intent ID please?

eternal scaffold
#

Stripe::PaymentIntent.retrieve("pi_3NyHig2u61NOe9050cxtPojp")

atomic drift
#

And can you tell me what you're trying to accomplish?

eternal scaffold
#

trying to create a direct payment intent

#

on a connected account

atomic drift
#

So a Standard (not Express or Custom) connected account?

#

It looks like this is a direct charge to me, although it's a little funky. You should remove transfer_data and on_behalf_of entirely and use application_fee instead to transfer a portion of the funds to your platform account.

eternal scaffold
#

ok thank i will try that!

#

does this look any better?

Payment Intent Object {
"id": "pi_3NzQboFasXr0btMF1LpE2DWi",
"object": "payment_intent",
"amount": 25663,
"amount_capturable": 0,
"amount_details": {
  "tip": { }
 },
"amount_received": 0,
"application": "ca_AW66mwVnWomlpodMMa5e84oldCqp3joZ",
"application_fee_amount": 128,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3NzQboFasXr0btMF1LpE2DWi_secret_sG1qrcPD0EsXegqAnY97vQiMd",
"confirmation_method": "automatic",
"created": 1696885404,
"currency": "usd",
"customer": null,
"description": "Invoice #2301-0514-5410-30",
"invoice": null,
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
"metadata": {
 },
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
  "installments": null,
  "mandate_options": null,
  "network": null,
  "request_three_d_secure": "automatic"
  }
},
"payment_method_types": [ "card" ],
"processing": null,
"receipt_email": "richi+scotty+letest1@logicalengine.com",
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
 }
atomic drift
#

Yep, that looks like a more typical direct charge.

eternal scaffold
#

for some reason i get an error. let me see if i can get that error

#

"The client_secret provided does not match any associated PaymentIntent on this account."

#

here we go:

message
: 
"The client_secret provided does not match any associated PaymentIntent on this account."
param
: 
"client_secret"
request_log_url
: 
"https://dashboard.stripe.com/test/logs/req_agqKw3RUa6dtrb?t=1696886026"
status
: 
400
type
: 
"invalid_request_error"
#

which i'm wondering if I'm just doing connect wrong in the testing env.

atomic drift
#

You need to initialize Stripe.js with your platform's publishable key and the connected account's ID, since these are direct charges.