(offers: OfferInfo[])
| 10 | }; |
| 11 | |
| 12 | export const generateCheckoutUrl = (offers: OfferInfo[]): string => { |
| 13 | const offersParams = offers |
| 14 | .map((offer) => `&offers=1-${offer.offerNamespace}-${offer.offerId}`) |
| 15 | .join(''); |
| 16 | const checkoutUrl = `${EPIC_PURCHASE_ENDPOINT}?highlightColor=0078f2${offersParams}&orderId&purchaseToken&showNavigation=true`; |
| 17 | return generateLoginRedirect(checkoutUrl); |
| 18 | }; |
no test coverage detected