#bongowilliams

1 messages · Page 1 of 1 (latest)

pallid lilyBOT
uneven cedar
#

example

pastel field
#

okay thanks - and i have one more question regarding moving from stripe invoices for our connected accounts, to payment pages:

#

We currently us the php api functions: below to create the invoice for the connected account to be paid for their service on our pllatform:

$invoice_item = \Stripe\InvoiceItem::create([
$invoice = \Stripe\Invoice::create([
$invoice->finalizeInvoice();

IF we wanted to move to simply creating a payment page when one of our users wants to pay them, should we use the api instructions and workflow here? https://stripe.com/docs/connect/creating-a-payments-page
Or can we create a page, and store the url for that payment page in our database like we were with invoices?

uneven cedar
#

i don't really quite understand what you mean by Or can we create a page, and store the url for that payment page in our database like we were with invoices - can you explain a bit more?

pastel field
#

thanks!

#

yeah of course, currently we create a stripe invoice for our users on our platfoprm to be paid, and then we store that stripe invoice link on our local database, to use as the action for the user to get paid.

#

so i understand we could do that if we used payment links api, but if we used the checkout payments page api, we'd need to creawte a new stripe payment url on each action / payment attempt by a user?

#

i guess im trying to work out if we should use payment links or a check out page. whats the advantage or differeence for each?

uneven cedar
#

hrm, i wouldn't suggest storing the Checkout link on your local db. The Checkout Session will expire after some time.

#

what i would suggest doing is that your page simply creates a new Checkout Session when the customer accesses your site

#

to link the Checkout Session to your order id, you can pass in metadata or a client_reference_id when creating it

pastel field
#

okay cool - that makes sense 👍 I will do that

#

could you confirm this? and also is this the same as BECS credit?

#

I’m trying to investigate how our user would “click a button” to pay from their bank account to another bank account via ACH

at the moment it’s just displaying the other person’s bank details for ACH, for a transfer but they want a physical method to click/pay them by automatically debiting their own accoun

uneven cedar
pastel field
#

will do

uneven cedar
#

credit and debit are two different "types" of payment methods - debit is a pull, credit is a push, if that makes sense?

pastel field
#

yeah it makes sense - will both be available for us using one off checkout payment pages?

uneven cedar
pastel field
#

oh i see- so not supported in the US?

uneven cedar
#

yep, it's not supported in the US yet.

pastel field
#

by the looks of things, the collumn i need to look at is that first collumn "Checkout (Payment Mode)" and that prety much all payment methods are available with that API integration if we move that way from invoices. Does automatic payment methods for stripe connect work for these payment pages too? and does that need to be explicitly set?

#

we'd like our users to define what payment methods they want, and we allow them all by default for stripe and our users to decide based on whats activated by teh connected account and stripe via the currency

uneven cedar
#

and yes, Checkout (Payment Mode) is the column you would need to look at

pastel field
#

great thanks for your help confirming all of this

uneven cedar
#

feel free to reach out again if you have any other questions!

pastel field
#

thanks!

uneven cedar
pastel field
#

oh thanks!

#

this is really for one off payments, our platform facilitates DJs or bands to be paid for gigs - we create invocies for them, and we're using this checkout integration to enable them to be paid digitally through stripe, ratherthan old fashioned bank trasnfer

#

so i dont think the cart recovery is useful on this occasion, but ill look into it

#

I have one more question while im here, with \Stripe\Checkout\Session::create([ and stripe connect - do I need to set any values to allow automatic payment methods? or are these set by default?

silver jasper
#

Hi @pastel field I'm taking over

pastel field
#

hi jack

#

i want to allow our users, who are stripe connect customers, to be able to use any payment methods they like, so im just wondering if when i create a checkout page via the api for a connected account, if I need to set any values expicitly to allow automtic payment methods, or if they are on by default?

silver jasper
#

Yes you are right, removing payment_method_types from the checkout session creation tells Stripe to use automatic payment methods when rendering a checkout page

pastel field
#

however you can see that when I created the payment intent, it says that only card is available:

#

{
"id": "pi_3Loh042XVptw46Sq068HCI6N",
"object": "payment_intent",
"last_payment_error": null,
"livemode": false,
"next_action": null,
"status": "requires_source",
"allowed_source_types": [
"card"
],
"amount": 55000,
"amount_capturable": 0,
"amount_details": {
"tip": {
}
},
"amount_received": 0,
"application": "ca_JaWYaFIL9MHe3nCqcFDQQnSoT5h4lGjj",
"application_fee_amount": 550,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"charges": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_3Loh042XVptw46Sq068HCI6N"
},
"client_secret": "pi_3Loh042XVptw46Sq068HCI6N_secret_Lej8VoK41LJqCIMpCLe5RkZjM",
"confirmation_method": "automatic",
"created": 1664774132,
"currency": "aud",
"customer": "cus_MOoI7OLyEga5Dy",
"description": "Booking: neg commish - 28th September 2022",
"invoice": null,
"metadata": {
"event": "https://muzeek.com/events/edit?eventid=96389",
"invoice": "https://muzeek.com/payments/invoice?id=7334&ref=uFkiUqsQ7QZpZCl1S5w23cpm1BqIxnNqLzNwxwWA",
"invoice from": "https://muzeek.com/muzeekagency",
"invoice to": "https://muzeek.com/metallibar",
"invoice_number": "76522",
"origin": "Payment page created via Muzeek Invoicing"
},
"next_source_action": null,
"on_behalf_of": null,
"payment_method": 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": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"transfer_data": null,
"transfer_group": null

#

okay thanks - so is there a reason payment_method_types here is just set to card?

pastel field
#

yes, i have some on by default in my settings for example:

silver jasper
#

Ok, so as you can see here, Alipay and GrabPay requires additional actions and they are off by default.

pastel field
#

okay cool. and in my test cehckout page, i can see Gpay:

silver jasper
#

And for Google Pay and Apple Pay, the payment method type is still card.

pastel field
#

okay cool.

#

so i wont set anything for payment_method_types so that it defaults to automatic

#

im just concerned that the response from creating this checkout sessionsays card rather than automtic

silver jasper
#

Stripe will determine the list of available payment method types based on your account settings, in your case the only available payment method type is card.

pastel field
#

okay cool

#

thanks

#

good to know, that I've set things correctly

#

to confirm 1000% (sorry I've just had issues with this in the past) - this is my request, does this look like in terms of the API code, that I've done the correct thing to enable automatic payment methods to you?

silver jasper
#

can you send me the request ID?

pastel field
#

yeah

#

req_6svtLLypqcT6qT

silver jasper
#

Thanks, it looks good to me 🙂

pastel field
#

beauty

#

thanks jack

#

final question for ya jack

silver jasper
#

No problem!

pastel field
#

how long will it take all these payment attempts (checkout sessions) to leave the dashboard for the connected account?

#

or will they always stay there

silver jasper
#

What do you mean by leave the dashboard?

pastel field
#

oh i mean, do they disappear from the dashboard or always stay there

#

it thought by the clock icon they might leave, the invomplete ones

#

its not a big deal, but seeing as we are using these sessions for means of paying an invoice for a gig, we dont really need to retain the session or checkout info - and it might be confusing for our users if they see many incomplete payment attempts for example

silver jasper
#

I see, these payment intent records will stay

pastel field
#

oh wait - one more question

#

(Request req_7BeZaUJQDh5wg3) You passed an empty string for 'line_items[0][tax_rates][0]'. We assume empty values are an attempt to unset a parameter; however 'line_items[0][tax_rates][0]' cannot be unset. You should remove 'line_items[0][tax_rates][0]' from your request or supply a non-empty value.

#

what's the best way for me to still pass a tax_rates paramater, but as empty if there's no tax rate set?

silver jasper
#

Simply remove this parameter if you are not going to set a tax_rates