#-froggles-_error

1 messages ¡ Page 1 of 1 (latest)

unreal micaBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1288819389352902696

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

spark mortar
#
pi, err := paymentintent.New(&stripe.PaymentIntentParams{
        Amount: stripe.Int64(amount),
        Params: stripe.Params{
            Headers: *headers,
        },
        Currency: stripe.String(currency),
        Customer: &customerId,
        AutomaticPaymentMethods: &stripe.PaymentIntentAutomaticPaymentMethodsParams{
            Enabled: stripe.Bool(true),
        },
        UseStripeSDK: stripe.Bool(true),
        OnBehalfOf:   stripe.String(account.Stripe.CreatorId),
        TransferData: &stripe.PaymentIntentTransferDataParams{
            Destination: stripe.String(account.Stripe.CreatorId),
            Amount:      stripe.Int64(amount),
        },
    })
gentle nest
#

But accoriding to the error:

You cannot create a charge with the on_behalf_of parameter set to a connected account with transfers but without the card_payments capability enabled.
The connect account must have the card_payments capability

spark mortar
#

i know that part but what's confusing me is that it was working without an error for the same account im trying to "donate" money to right now

#

it just stopped working

spark mortar
#

was there an API change?

gentle nest
#

Do you have a successfull reqestId on the same Account ?

#

That connect Account acct_1PbMJL4IbSdQNSRI has only transfers and payout capabilities indeed, but not payments.

spark mortar
spark mortar
gentle nest
#

Thanks for sharing. However this request isn't a destination charge with the same Connected Account.

spark mortar
#

this account also does not have card_payments enabled if im not mistaken

#

but let me look for the payment for that account, there are a lot of logs to sift through

gentle nest
#

You are referring to two different type of charges. The first one a destination charge for the Connect Account acct_1PbMJL4IbSdQNSRI. While the second is a normal charge made by the Stripe Platform Account.

spark mortar
#

wait, i am currently trying to make a payment intent for this account acct_1PVrukQKB1Lw6SlP since this one is the one where payments worked before

#

this is the request ID that just failed req_S1ewll84Qe1lZN

#

history of payments for that account

gentle nest
#

These are transfers from your platform Account and not Payments actually. Here is a requestId of the creation of one of these req_26ZyCbeSKap9dO

spark mortar
#

is there any alternative way to make the payments available to these accounts because it's a donation feature and we want users to be able to send them money?

#

because here it says payments are enabled

gentle nest
#

is there any alternative way to make the payments available to these accounts because it's a donation feature and we want users to be able to send them money?
You need to make transfer like you are doing previously, without using the on_behalf_of

unreal micaBOT
gentle nest
#

Or you need to create other Connect account with the card_payment capability.

spark mortar
#

will only relying on google pay or apple pay require card_payments capability as well?

small gyro
#

hi there!

#

yes Google/Apple Pay are cards Payment Methods

spark mortar
#

hey!

spark mortar
#

so transfers are the only way forward? for transfer the user transferring would require their own connect account, right?

small gyro
#

not sure what you mea by "transfer" here. do you mean sending money from the platform account to the connected account?

spark mortar
#

what we want for the users is to donate their money to the creator/connect account without having to create a connect account for the user themselves.

spark mortar
small gyro
#

yes looks like you are talking about transfering money to a connected account. but I still don't understand your question. what exactly are you trying to do and what is the issue?

spark mortar
# small gyro yes looks like you are talking about transfering money to a connected account. b...

the feature we are trying to implement is a donation system. it works for the Connect accounts with "full" capabilities/Service Agreement without any issues. the issue is the connect accounts with "recipient" capabilities/Service Agreements. for full accounts, the donation goes directly to the connect account but for recipient we cannot directly send the payment to them since card_payment is not supported for them. we do not want our regular users to create a connect account first just to donate the money to the creator so i was asking if there is any other way to directly send the payment to the connect account with "recipient" Service Agreements.

#

if there's no other way than "transfer" then i was thinking that the donation goes to our platform account and then through webhook we "transfer" it the connect account with the "recipient" service agreement

small gyro
#

you would make the payment on your platform account, and then send the money to your connected account with a transfer.

spark mortar
#

ah, okay.

#

thank you for your time and help