mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 13:09:46 +00:00
chore: generate
This commit is contained in:
parent
5f3ab9395f
commit
c128579cfc
5 changed files with 122 additions and 181 deletions
|
|
@ -421,7 +421,10 @@ export async function POST(input: APIEvent) {
|
|||
})
|
||||
}
|
||||
if (body.type === "invoice.payment_succeeded") {
|
||||
if (body.data.object.billing_reason === "subscription_cycle" || body.data.object.billing_reason === "subscription_create") {
|
||||
if (
|
||||
body.data.object.billing_reason === "subscription_cycle" ||
|
||||
body.data.object.billing_reason === "subscription_create"
|
||||
) {
|
||||
const invoiceID = body.data.object.id as string
|
||||
const amountInCents = body.data.object.amount_paid
|
||||
const customerID = body.data.object.customer as string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue