"Will pay amount cents" inconsistent with new currency options

I just started getting some pledges with the new currency exchange system. I think this is great, but it’s now causing some problems with my API hooks. Up until now, I used the value in the “Will pay amount cents” to determine what benefits patrons have access to in my game. This works great because it can accommodate patrons who might pledge an amount in between tiers. They will essentially receive the benefits for the greatest tier they have reached. I have also read about people having problems with patrons changing tiers and the entitled tier not reflecting properly, so using “Will pay amount cents” is another way to avoid this problem.

With that said, the problem I’m not having is that the value “Will pay amount cents” is not in US dollars, which is my currency, but the value of the patron’s currency. For example, a $10 tier will give the “cents” value as 1000 but if the patron is using Euros the “cents” value in the API comes up as 950.

Is there a way around this, or could someone who controls the API create another option to use the cents value of the Patreon page’s currency rather than the patron’s individual currency?

This is an issue we are aware about and looking into a solution. Currently you can use currently_entitled_tiers to get the tier which user is entitled to, and then match this to a monetary value over your tiers. But this does not cover custom pledge patrons, of course.

1 Like

@CodeBard Thank you for the suggestion. I’ll give that a try but right now I can’t test it because the Pateon API isn’t sending the information to Integromat.

API started working again. I gave your suggestion a try but it didn’t pull over a level number, just “NaN”

1 Like

When you say api started working again, are you talking about currently_entitled_amount_cents?

Correct, when I say it’s working I mean Patreon is sending the API alert to Integromat that a pledge was made or changed. This is what will cut out randomly for a few days at a time with no warning or indication of what’s happening.

I tried currently_entitled_tiers instead of currently_entitled_amount_cents and it produces NaN instead of an actual value.

To pull currently entitled tiers, you must request it as a relationship. An example call is below in fetch_user call of the WordPress plugin:

The call there is an efficient call which gets you user details, membership info, pledge/tier level in just one call. You can use it in your app to check for an individual user who has logged in.