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 cfec356
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@recurly/react-recurly",
"version": "2.0.1",
"description": "React components for Recurly.js",
"main": "lib-dist/index.js",
"main": "lib/index.js",
"types": "types/index.d.ts",
"repository": {
"type": "git",
Expand Down

0 comments on commit cfec356

Please sign in to comment.