- 13 Jul 2022
- 2 Minutes to read
- Print
- DarkLight
Stripe Billing Object and Stripe API Interaction
- Updated on 13 Jul 2022
- 2 Minutes to read
- Print
- DarkLight
Usage
Submission Method:
Automatically pushed to Stripe upon save of related objectsDescription:
When the Subscription_Item__c & Quantity fields are defined, the usage record is automatically created in stripe. There are no updates.
Product
Submission Method:
Automatically pushed to Stripe upon save of related objectsDescription:
Once the Payment Gateway record is saved on the product record, the product is automatically created in Stripe. No updates are allowed once the product is pushed to Stripe.
Subscription
Submission Method
Click the button / Check thePush to Stripe
fieldDescription
Initially, a subscription is created by clicking theSubmit to Stripe
button. We also provide aPush To Stripe
checkbox field on the subscription. When checked, a subscription is created in Stripe. Once created & subscription Id is present - it then automatically syncs on updates. The fields that trigger auto sync of the subscription to Stripe are:- Payment Method
- Coupon
- Billing Method
- Days Until Due
- Amount Threshold
- Reset Billing Cycle Anchor 7. Cancel At Period End
- Prorate
- Proration Date
- Billing Cycle
- Anchor First Invoice
- Trial End
- Trial From Price
- Tax Percent
- Pending Invoice Item
- Interval
- Pending Invoice Item
- Interval Count
Subscription Item
Submission Method:
Submitted along with SubscriptionDescription:
Once the subscription is saved in stripe any new updates or new line items added - are automatically synced. ThePrice & Quantity
fields will trigger an automatic update.
Sales Document
Submission Method:
Click the button/Check thePush to Stripe
fieldDescription:
Initially, an Invoice is created by clicking theSubmit to Stripe
button. We also provide aPush To Stripe
checkbox field. When checked, it creates an Invoice in Stripe. Once created and an Invoice Id is present - it then automatically syncs on updates. The fields that trigger an auto sync of the Invoice to Stripe are:- Payment Method
- Coupon
- Billing Method
- Days Until Due
- Due Date
- Customer
Updates are only allowed when the Invoice Stage = Draft. Once the Invoice is sent or finalized you cannot update the Invoice.
Line Item
Submission Method:
Submitted along with InvoiceDescription:
Once the Sales Document is saved in Stripe as an Invoice, any updates or new line items added will automatically sync to Stripe. ThePrice & Quantity
fields will trigger an automatic update. This can be disabled via a Custom Setting, "Disable_LineItem_AutoSync_With_Stripe__c."
Stripe Coupon
Submission Method:
Click the button / Check thePush to Stripe
fieldDescription:
A coupon is created by clicking theSubmit to Stripe
button. We also provide aPush To Stripe
checkbox field that when checked creates a coupon in Stripe. No updates.
Stripe Price
Submission Method:
Click the button / check thePush to Stripe
fieldDescription:
A Stripe Price is created by clicking thePush to Stripe
button. We also provide aPush To Stripe
checkbox field that when checked creates a Price in Stripe. Once created and the Price Id is present - it then automatically syncs on updates. The fields that trigger the auto-sync are:- Active
- Product
- Name
- Trial Period Days
Tier
Submission Method:
n/aDescription:
Tiers are pushed when a Price is pushed. No updates are allowed.
Stripe Gateway Order
Submission Method:
Click the buttonDescription:
Created when you click thePush to Stripe
button. No updates are allowed.
Gateway Order Item
Submission Method:
Submitted along with the Stripe Gateway OrderDescription:
Gateway Order Items are pushed with the Stripe Gateway Order.
Gateway SKU
Submission Method:
Click the buttonDescription:
Created when you click thePush to Stripe
button. No updates are allowed.