Reputation: 1125
Can anyone suggest an approach to get Recurly pricing using its back-end API v3? There is Recurly.js for front-end pricing and building checkout pages, but we have a need to present pricing to customers prior to purchase (e.g. for quotes), and not necessarily in connection with a checkout flow. This must be done on the back-end.
We thought about creating a purchase preview to compute pricing, but this method requires an account code and/or billing information. For our purposes, pricing is not determined in connection with a specific account, so this doesn't work. The only workaround appears to be to pick an existing account with valid billing information at random and plug that account into the request query. This is really hacky, though.
To summarize, we are trying to compute the price of a subscription with several add-ons that have various pricing tiers using the Recurly API v3 (PHP, in our case), without the need for account or billing info context. Not looking for a code example here; more focused on the general approach.
Upvotes: 1
Views: 338