I am writing rest api using one of the PHP cms for a eCommerce app.
The current cms has sessioncart which uses customer's session to fetch the customer detail and store the cart data.
I want to provide the api for add to cart functionality for android and ios app.
Apps and website will be linked so if user logs in through app or website he/she should be able to see the cart item.
What i cannot get is how to maintain or create the customer session for rest api
Am i doing it right?.
Any help or guidance will be really appreciated.
Related
I have made a php based website and working on payment integration now.
I want to add upi payment option with paytm, google pay, phonepe and bhim.
Once user clicks on icon, appropriate app with predefined VPA and AMOUNT should get loaded
Please help
The way to do this is to follow the UPI linking specification (page 5).
Assuming that the link will be presented on a mobile web browser, your link should look something like: upi://pay?pa=<VPA>&am=<AMOUNT>
You can integrate the UPI intent solution provided by paytm. This will work fine in mobile view, through this integration you will get the deeplink.
You need to call the deeplink provided which will invoke all the UPI PSP Apps on the device and shown to the user with payment amount already filled.
Just for your information UPI intent will not work in web/desktop. You can integrate UPI collect to support web/desktop payment.
I am very new to Google API implementation. Need help regarding this.
My Requirement -
Showing purchased movie from play store in a single web page (php page) using google account
I have client id, secret key etc.
Let me know how to do it.
Firstly I need to login using gmail id. Then to show movie from it.
I have downloaded a google-auth-api from github. the example are not working properly
The Google Play Store does not appear to expose any API to determine what movies a user has purchased. The only purchases APIs I was able to find were specific to Android, and only work on in-app purchases for the current application.
I am a senior PHP developer, but I'm newbie with Infusionsoft. My client has the requirements below:
Create a plugin in Infusionsoft to trigger an event at the time of affiliate registration with a affiliate traceable phone number via Mongoose API.
Create a plugin in Infusionsoft to trigger an event at the time of affiliate login which will send a affiliate traceable phone number via Mongoose Metrics API and send a response with call details/statistics to the Infusionsoft server.
I actually do not where and how to create a plugin in Infusionsoft and how to call Mongoose Metrics API in it.
Can anybody please give me step-by-step info if possible so that I can work through this faster?
If you are using a webform for your affiliates to signup you can have Infusionsoft send a POST with the information the affiliate used in the form to a script which would add the number to mongoose api.
If you are manually creating affiliates inside infusionsoft then there is no automatic listener to send the information, a post would have to be setup in an actionset and run manually on the affiliate's contact record. If you are not familiar with action sets you can read about them here
As far as the second plugin there is no way to run an action when an affiliate logs in. You might be able to do some magic if you find a way to add HTML/Javascript to the affiliate login page and send that information to your server. However, that is a very ugly way to do it.
We currently have an e-commerce website with a bunch of other features so accounts are necessary.
We're moving over the store over to Shopify but currently customers have to login on our website, then again on the shop. I've been unable to find any Single Sign On documentation, what would be the best solution?
I was considering making the login form post to both our back-end and Shopify to trick Shopify into creating a session but i'm not sure how reliable it'd be.
The website is PHP & MySQL.
Single sign-on is available but only in Enterprise plans. You need to contact Shopify for these plans and access to single sign-on.
We have an application, which sells "downloadable" products.
Scenario is:
Add product to our backend (powered on php and symfony)
Add product to apple store and wait when it will be approved
Sell it.
It works like a charm.
But I'd like to implement push notification, when new product is added to our store. The problem is that I don't know if the produc was approved and is available on Apple side.
It may confuse a user, when he sees the notification about 1 new product, but it is unavailable and the user doesn't even see it on application.
Is there a way to get approved and available product list from Apple?
Hey, try parsing emails, that you get from App Store when new product is approved. This will make all notification up to date and you won't miss any user
Jus implement on your server an module that fetches the apple product to see if it is there.
http://developer.apple.com/news/ios/archives/2010/january/
Drive Customers Directly to Your App on
the App Store with iTunes Links With
iTunes links you can provide your
customers with an easy way to access
your apps on the App Store directly
from your website or marketing
campaigns. Creating an iTunes link is
simple and can be made to direct
customers to either a single app, all
your apps, or to a specific app with
your company name specified.
To send customers to a specific
application:
http://itunes.com/apps/appname
To send
customers to a list of apps you have
on the App Store:
http://itunes.com/apps/developername
To send customers to a specific app
with your company name included in the
URL:
http://itunes.com/apps/developername/appname
For more details on creating iTunes
links, read: Creating easy-to-read
links to the App Store for your
applications and company.
Or Creating easy-to-read links to the App Store for your applications and company