How to generate user purchase a product, with offline payment- and send them an invoice with API? I see a sample here: http://www.amember.com/docs/REST_API_examples#Add_Invoice.2C_Payment.2C_Access 'public_id' => 'TRAX', <-- where is this value come from? I'm wondering, can we just send the user_id (buyer) + product_id + plan_id? because another data is in database already. Thanks
Hello, public_id is any unique string. I am afraid there is not such feature to just send user_id (buyer) + product_id + plan_id. You can add invoice with product manually from admin interface: http://www.amember.com/docs/Frequen...ayment.2Faccess_from_aMember_Control_panel.3F
thanks @caesar solved using BuyNow Button one more question, can I check which products does a user have at the moment? when I call /api/users?_key=XXX&_filter=xxx@akura.id I only get user data, no product information and when I call /api/products?_key=XXX I only get product data.
You need to use check-access controller: http://www.amember.com/docs/REST#Check_Access You can retrieve user by email and within response you will have info about his active products. Best Regards.