Integration question

Good evening,
I was integrating atlos payments in the websites and I need to have recurring payments.
In the documentation the only step about subscriptions does not show the options that the “recurrence” tag can have.

How can I specify a monthly and yearly recurrence (in two different payment buttons).

Thanks
:slight_smile:

Hi enricop,

Please see below:

atlos.RECURRENCE_NONE - one-time payment, no recurrence
atlos.RECURRENCE_DAY - day
atlos.RECURRENCE_WEEK - week
atlos.RECURRENCE_MONTH - month
atlos.RECURRENCE_YEAR - year

The documentation is here:

You can have two payment buttons on the same page with two different
recurrence parameters. Or, you can have only one payment button and a
selector for the recurrence as a separate HTML input element, then use
JavaScript to change the parameter passed to Atlos.

Thank you very much!

Another quick question:
Is there the possibility to add Metadata to a purchase?
For example:
If I’d like to link the user wallet with his email, is there the possibility of doing so directly in the purchase step?

You can pass the user’s email to the widget, and we’ll save it with the transaction data.

For all other metadata, we recommend to store it on your end in a database. Then, generate a unique order number for each purchase and pass it to us in the orderId filed. You will receive the order id in the postback (and can also get it with the Transaction/List API call). Then, you can fetch all metadata from your database with that order number.

Hello,
Order status will not be updated after payment !
first, it was blocked by wordfence pluign due to the fact that the user agent field is empty ! why empty ?! no plan to set it ?
/index.php/wc-api/atlos-payments/

then, i unblock it manually but still i face the same issue regarding order status, any idea ? is it related to " Postback url " field in Atlos website dashboard ? what url should i write ?
Kind regards

Hi lospaygate,

I’m not familiar with the “user agent field.” Could you post a screenshot of the screen where that needs to be filled in or the screenshot of the error message. Our WordPress plugin only requires these fields:

  1. Enable/disable
  2. Merchant ID
  3. API secret

You do not need to set the postback URL in the Merchant Panel to use the WordPress plugin. It will be set automatically.