#Step-Connect

1 messages · Page 1 of 1 (latest)

lusty gust
acoustic kettle
#

Hi, how can I invite our dev into this chat?

#

This is his discord user: LH#8599

#

hello?

lusty gust
#

Hello, I think this server is public. You can give them the link and they will join by themself

#

Sorry I am bit stretching, looking at this

#

How are you creating the Subscription?

#

If you use Stripe account header, I believe it should takes the partners logo/brand into consideration

acoustic kettle
#

I'm back sorry

#

how can I grab the link of this thread?

#

You could also look at the previous thread I had with @fringe hatch . At that time, our dev was not online

#

We need to invite our dev to this thread, he would be able to give you Object ID and etc.

lusty gust
#

You will need to let them join the server first. Everyone can join this server

acoustic kettle
#

Okay figured it out, sent the link

dire apex
#

Hi @lusty gust

#

I'm Luong, I'm developing custom flow for Payment

#

I have issue in invoice

#

I followed the documents, add invoice item, then create invoice for customer, after that, finalize and make a payment intent

#

But I can't add subscription price of product to invoice

lusty gust
#

Hi

#

Hmm that sounds a bit different from the issue above. I see you are creating Invoice Item. What do you mean by "can't add subscription price of product to invoice"?

#

When you create a standalone InvoiceItem, it only can be an one-off price

dire apex
#

Yes, I've read document and tested with Web version and API

#

It can't add subscription item

acoustic kettle
#

Do you want me to share a little bit of context with you Orakaro? I wrote it for the previous Stripe Staff.

dire apex
#

We have system, that sell product with 3rd-partner. And then I want client to pay with partner, so I add item to invoice with partner infor, then create invoice, finalize it and then pay with customer card

#

Is it right flow?

#

I followed Stripe docs.

#

And for subscription, I set default payment method for customer, then create subscription

lusty gust
#

Yes it sounds correct to me. It's the typical usage with Connect

#

When you create the Subscription, did you specify Stripe Account header?

acoustic kettle
#

We are a marketing agency, providing specific services to real estate agents. We want to onboard real estate firms, so they can sell our services to their agents. We want these firms to become the providers of marketing services to their real estate agents. So we had to come up with a fully whitelabeled solution. For the payments, as well as servicing their agents.

For the payment part, we decided to work with Stripe Connect, that way we can onboard these firms to become our partners. Then we created custom checkout/shop pages (something like this: http://phpstack-260718-2349907.cloudwaysapps.com/) to provide to our partners. Then partners would their shop link to their agents.

Agents would then buy OUR services, through partner shop (the link above), then our partners get paid commission.

Some of our products are recurring only. Some are one-time payments. Some are One-time (setup cost) and recurring payment.

At first, we had all within 1 payment, but our dev said that we can only have them paid on the first invoice. Not the recurring one.

Then we splited the payments for 1 product (one-time and recurring) to have our partners paid on all recurring payments as well.

Dev came back saying that the invoices are branded, but the subscription invoices aren't.

We need to either fix what we have right now (brand the subscription invoice to our partner), or come up with a different approach, simpler approach that fixes this entirely.

The main thing that needs to be respected is the whitelabel part. Where the invoices and everything the real estate agents puchases, must show the firm's (our partner) branding.

#

Hope it helps you with the context.

#

IF we can have 1 payment instead of 2, it would be even better. But dev says we cannot include subscription payment within the one-time payment invoice.

There are 2 invoices. One for the one-time payment and one for subscription invoice.

The subscription invoice is not branded.

dire apex
#

But I can't set invoice to partner, after create subscription, I can't update invoice to target partner

lusty gust
#

The correct way to combine 2 type of Invoice is to incorporate the one-off to the recurring, not the other way around. So you typically need to create a Subscription , branded correctly first, then append the Invoice Item of one-off to its Invoice

#

After creating Subscription, you should be able to edit the first Invoice of it in 1 hour, when it is still on the draft mode. But there are some cases you won't have that 1 hour interval. Can you share a specific request you created the Subscription?

dire apex
#

I used php

#

With this data

lusty gust
dire apex
#

items is priceIds of products that client want to sub

#

req_Xq5ki2c4BGffI7

#

RequestID: req_Xq5ki2c4BGffI7

lusty gust
#

Okie so firstly this is destination charge, and it makes the Platform (your account of acct_1KBKzREkC06sMcNn) to be Merchant Of Record, aka the settlement merchant, and will use your Platform setting for brand, logos... You would want the on_behalf_of parameter to change settlement merchant to your connected account: https://stripe.com/docs/connect/destination-charges#settlement-merchant

With Connect, you can create charges on your platform account, take fees, and then transfer remaining funds to your connected accounts.

#

I think it will solve the logo issue. Next you would want to incorporate the one-off Invoice to this first Invoice of this Subscription. It's a different thing (looking)

#

This is how to add an extra one-off item to a subscription's first Invoice

dire apex
#

Can you look this log: req_pGgpnePvPrMK7J

#

It's invoice for one-time price, and I think it's the right way

dire apex
#

Thank you so much

#

The flow will create draft invoice, then add item and do a payment?

#

Is it right?

lusty gust
#

It's invoice for one-time price, and I think it's the right way
This looks correct to me, but it is creating a standalone one-off Invoice. I mean you need to incorporate one-off Invoice to Invoice of a Subscription

dire apex
#

Okay, I think I found the solution with your suggestion, will try it and again, thank you so much

lusty gust
#

2 choices:

  1. Use the guide above (https://stripe.com/docs/billing/invoices/subscription#first-invoice-extra) to create a Subscription and at the same time incorporate another one-off item, using Destination Charge and on_behalf_of
  2. Create a Subscription beforehand using Destination Charge and on_behalf of, then modify its first Invoice to add the extra one-off item later as mentioned in the same Doc (https://stripe.com/docs/billing/invoices/subscription#adding-draft-invoice-items) This will require an extra tweak to make the 1 hour draft available to your Subscription's first Invoice
    I recommend 1) over 2)
dire apex
#

Okay, got it, thank for your support

lusty gust
#

Np, good luck 🙂