Comments (5)
今開発に入っているところの検証を含めて実装してみる
from frourio-demo.
テスト送信のリクエスト(payment failed)
{
"created": 1326853478,
"livemode": false,
"id": "evt_00000000000000",
"type": "invoice.payment_failed",
"object": "event",
"request": null,
"pending_webhooks": 1,
"api_version": "2020-08-27",
"data": {
"object": {
"id": "in_00000000000000",
"object": "invoice",
"account_country": "JP",
"account_name": null,
"account_tax_ids": null,
"amount_due": 3000,
"amount_paid": 0,
"amount_remaining": 3000,
"application_fee_amount": null,
"attempt_count": 0,
"attempted": true,
"auto_advance": true,
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
"created": 1620562262,
"currency": "jpy",
"custom_fields": null,
"customer": "cus_00000000000000",
"customer_address": null,
"customer_email": null,
"customer_name": null,
"customer_phone": null,
"customer_shipping": null,
"customer_tax_exempt": "none",
"customer_tax_ids": [],
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
"description": null,
"discount": null,
"discounts": [],
"due_date": null,
"ending_balance": null,
"footer": null,
"hosted_invoice_url": null,
"invoice_pdf": null,
"last_finalization_error": null,
"lines": {
"object": "list",
"data": [
{
"id": "il_00000000000000",
"object": "line_item",
"amount": 3000,
"currency": "jpy",
"description": "My First Invoice Item (created for API docs)",
"discount_amounts": [],
"discountable": true,
"discounts": [],
"invoice_item": "ii_1IpBTODBz4ItKNrDbYL2RtZ6",
"livemode": false,
"metadata": {
},
"period": {
"end": 1620562262,
"start": 1620562262
},
"price": {
"id": "price_00000000000000",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1619672848,
"currency": "jpy",
"livemode": false,
"lookup_key": null,
"metadata": {
},
"nickname": null,
"product": "prod_00000000000000",
"recurring": null,
"tiers_mode": null,
"transform_quantity": null,
"type": "one_time",
"unit_amount": 3000,
"unit_amount_decimal": "3000"
},
"proration": false,
"quantity": 1,
"subscription": null,
"tax_amounts": [],
"tax_rates": [],
"type": "invoiceitem"
}
],
"has_more": false,
"url": "/v1/invoices/in_1IpBTODBz4ItKNrDLoGnvuUF/lines"
},
"livemode": false,
"metadata": {
},
"next_payment_attempt": 1620565862,
"number": null,
"on_behalf_of": null,
"paid": false,
"payment_intent": null,
"payment_settings": {
"payment_method_options": null,
"payment_method_types": null
},
"period_end": 1620562262,
"period_start": 1620562262,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"receipt_number": null,
"starting_balance": 0,
"statement_descriptor": null,
"status": "draft",
"status_transitions": {
"finalized_at": null,
"marked_uncollectible_at": null,
"paid_at": null,
"voided_at": null
},
"subscription": null,
"subtotal": 3000,
"tax": null,
"total": 3000,
"total_discount_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": null,
"closed": false
}
}
}
from frourio-demo.
テスト送信のリクエスト(invoice paid)
{
"created": 1326853478,
"livemode": false,
"id": "evt_00000000000000",
"type": "invoice.paid",
"object": "event",
"request": null,
"pending_webhooks": 1,
"api_version": "2020-08-27",
"data": {
"object": {
"id": "in_00000000000000",
"object": "invoice",
"account_country": "JP",
"account_name": null,
"account_tax_ids": null,
"amount_due": 3000,
"amount_paid": 0,
"amount_remaining": 3000,
"application_fee_amount": null,
"attempt_count": 0,
"attempted": true,
"auto_advance": true,
"billing_reason": "manual",
"charge": "_00000000000000",
"collection_method": "charge_automatically",
"created": 1620562242,
"currency": "jpy",
"custom_fields": null,
"customer": "cus_00000000000000",
"customer_address": null,
"customer_email": null,
"customer_name": null,
"customer_phone": null,
"customer_shipping": null,
"customer_tax_exempt": "none",
"customer_tax_ids": [],
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
"description": null,
"discount": null,
"discounts": [],
"due_date": null,
"ending_balance": null,
"footer": null,
"hosted_invoice_url": null,
"invoice_pdf": null,
"last_finalization_error": null,
"lines": {
"object": "list",
"data": [
{
"id": "il_00000000000000",
"object": "line_item",
"amount": 3000,
"currency": "jpy",
"description": "My First Invoice Item (created for API docs)",
"discount_amounts": [],
"discountable": true,
"discounts": [],
"invoice_item": "ii_1IpBT4DBz4ItKNrDMU9ioeVf",
"livemode": false,
"metadata": {
},
"period": {
"end": 1620562242,
"start": 1620562242
},
"price": {
"id": "price_00000000000000",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1619672848,
"currency": "jpy",
"livemode": false,
"lookup_key": null,
"metadata": {
},
"nickname": null,
"product": "prod_00000000000000",
"recurring": null,
"tiers_mode": null,
"transform_quantity": null,
"type": "one_time",
"unit_amount": 3000,
"unit_amount_decimal": "3000"
},
"proration": false,
"quantity": 1,
"subscription": null,
"tax_amounts": [],
"tax_rates": [],
"type": "invoiceitem"
}
],
"has_more": false,
"url": "/v1/invoices/in_1IpBT4DBz4ItKNrD1kHRm45S/lines"
},
"livemode": false,
"metadata": {
},
"next_payment_attempt": 1620565842,
"number": null,
"on_behalf_of": null,
"paid": true,
"payment_intent": null,
"payment_settings": {
"payment_method_options": null,
"payment_method_types": null
},
"period_end": 1620562242,
"period_start": 1620562242,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"receipt_number": null,
"starting_balance": 0,
"statement_descriptor": null,
"status": "draft",
"status_transitions": {
"finalized_at": null,
"marked_uncollectible_at": null,
"paid_at": null,
"voided_at": null
},
"subscription": null,
"subtotal": 3000,
"tax": null,
"total": 3000,
"total_discount_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": null,
"closed": true
}
}
}
from frourio-demo.
テスト送信のリクエスト(subscription updated)
{
"created": 1326853478,
"livemode": false,
"id": "evt_00000000000000",
"type": "customer.subscription.updated",
"object": "event",
"request": null,
"pending_webhooks": 1,
"api_version": "2020-08-27",
"data": {
"object": {
"id": "sub_00000000000000",
"object": "subscription",
"application_fee_percent": null,
"billing_cycle_anchor": 1619617500,
"billing_thresholds": null,
"cancel_at": null,
"cancel_at_period_end": false,
"canceled_at": 1619617582,
"collection_method": "charge_automatically",
"created": 1619617500,
"current_period_end": 1622209500,
"current_period_start": 1619617500,
"customer": "cus_00000000000000",
"days_until_due": null,
"default_payment_method": "pm_1IlDhGDBz4ItKNrDeNmB17O9",
"default_source": null,
"default_tax_rates": [],
"discount": null,
"ended_at": 1619617582,
"items": {
"object": "list",
"data": [
{
"id": "si_00000000000000",
"object": "subscription_item",
"billing_thresholds": null,
"created": 1619617500,
"metadata": {
},
"price": {
"id": "price_00000000000000",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1619617379,
"currency": "jpy",
"livemode": false,
"lookup_key": null,
"metadata": {
},
"nickname": "プレミアム",
"product": "prod_00000000000000",
"recurring": {
"aggregate_usage": null,
"interval": "month",
"interval_count": 1,
"usage_type": "licensed"
},
"tiers_mode": null,
"transform_quantity": null,
"type": "recurring",
"unit_amount": 2000,
"unit_amount_decimal": "2000"
},
"quantity": 1,
"subscription": "sub_00000000000000",
"tax_rates": []
}
],
"has_more": false,
"url": "/v1/subscription_items?subscription=sub_JNzgSGYi5QRDJv"
},
"latest_invoice": "in_1IlDhIDBz4ItKNrD31xuwPim",
"livemode": false,
"metadata": {
},
"next_pending_invoice_item_invoice": null,
"pause_collection": null,
"pending_invoice_item_interval": null,
"pending_setup_intent": null,
"pending_update": null,
"schedule": null,
"start_date": 1619617500,
"status": "canceled",
"transfer_data": null,
"trial_end": null,
"trial_start": null
},
"previous_attributes": {
"plan": {
"id": "OLD_00000000000000",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": 24200,
"amount_decimal": "24200",
"billing_scheme": "per_unit",
"created": 1620450478,
"currency": "jpy",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": {
},
"nickname": null,
"product": "prod_00000000000000",
"tiers_mode": null,
"transform_usage": null,
"trial_period_days": null,
"usage_type": "licensed",
"name": "Old plan"
}
}
}
}
from frourio-demo.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from frourio-demo.
Related Issues (20)
- 半角カタカナ、数字等を許可
- 支払い完了メール
- エラーの通知
- メールのサニタイズ処理
- PWA HOT 1
- [Front] 利用者情報に変更がない場合に「お客様の登録情報を更新する」を表示させない
- DDDの導入 HOT 3
- [Front] カード情報の編集 HOT 1
- [CI/CD] サーバのデプロイの自動化
- [Server] APIのバージョン管理 HOT 1
- auth0 の設定を集約
- [Refactoring] モデルの定義に Prisma を含まないようにする HOT 1
- [Admin] 権限での検索を絞り込みにする HOT 3
- インフラコード化 HOT 2
- MySQL を使用
- Config整理
- 予約の状態をDB管理 HOT 1
- 権限を外す動作が正しくない HOT 1
- 権限のリファクタリング HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frourio-demo.