Skip to content

Commit

Permalink
feat(frontier): create payment methods in billing account (#332)
Browse files Browse the repository at this point in the history
- DelegatedCheckout should return the applied subscription
or product

Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma authored Jan 14, 2024
1 parent 834ddfb commit 0e8def5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ message DelegatedCheckoutRequest {
}

message DelegatedCheckoutResponse {
// Checkout session
CheckoutSession checkout_session = 1;
// subscription if created
Subscription subscription = 1;
// product if bought
Product product = 2;
}
2 changes: 2 additions & 0 deletions raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,8 @@ message CreateCheckoutRequest {
CheckoutSubscriptionBody subscription_body = 10;
// Product to buy
CheckoutProductBody product_body = 11;
// Payment method setup
CheckoutSetupBody setup_body = 12;
}

message CreateCheckoutResponse {
Expand Down
4 changes: 4 additions & 0 deletions raystack/frontier/v1beta1/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -768,4 +768,8 @@ message CheckoutSubscriptionBody {

message CheckoutProductBody {
string product = 1;
}

message CheckoutSetupBody {
bool payment_method = 1;
}

0 comments on commit 0e8def5

Please sign in to comment.