feat(payment): implement coffee tip plans and update payment flow
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
paidVoiceHistoryResponse,
|
||||
paidPaymentOrderStatusResponse,
|
||||
paymentPlansResponse,
|
||||
tipPaymentPlansResponse,
|
||||
refreshedEmailLoginResponse,
|
||||
refreshedGuestLoginResponse,
|
||||
userEntitlementsResponse,
|
||||
@@ -189,6 +190,10 @@ export async function mockCoreApis(
|
||||
await route.fulfill({ json: apiEnvelope(paymentPlansResponse) });
|
||||
});
|
||||
|
||||
await page.route("**/api/payment/tip-plans**", async (route) => {
|
||||
await route.fulfill({ json: apiEnvelope(tipPaymentPlansResponse) });
|
||||
});
|
||||
|
||||
await page.route("**/api/payment/create-order", async (route) => {
|
||||
await route.fulfill({ json: apiEnvelope(createPaymentOrderResponse) });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user