Skip to content

Commit

Permalink
Experimental debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissrogers committed Jul 16, 2024
1 parent 82d82a1 commit 4adc321
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/use-checkout-pricing.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export default function useCheckoutPricing (initialInputs, handleError = throwEr
subscriptionPricing = subscriptionPricing.currency(restInputs.currency);
}

console.log('assigning subscription plan', { plan, quantity });
subscriptionPricing = subscriptionPricing.plan(plan, { quantity });

if (addons.length) {
Expand All @@ -128,6 +129,7 @@ export default function useCheckoutPricing (initialInputs, handleError = throwEr
function addAddons(addons = [], subscriptionPricing) {
return addons
.reduce((subscriptionPricing, { code, quantity }) => {
console.log('assigning subscription addon', { code, quantity });
return subscriptionPricing.addon(code, { quantity });
}, subscriptionPricing)
.catch(handleError);
Expand Down

0 comments on commit 4adc321

Please sign in to comment.