During the initial use (loading the plugin):
Store the mId value, in the plug-ins settings..
Then have user click a button in admin panel to request for clover auth code.
When the code is returned, the application stores it in SQL server for future purchases.
When a customer makes s purchase:
Then have user click a button in admin panel to request for clover auth code.
When the code is returned, the application stores it in SQL server for future purchases.
The payment processing function will request API token.
Send POST request to clover with new order object.
Encrypt Credit Card information.
Send POST request to pay passing order and encrypted credit card to API.
If successful, store auth code in application and allow purchase.
If not, display payment failure notice.
With that being said, I have a few questions: Is this possible with the Clover API? I've seen that the application needs to be published in the Clover App Market to interact with the API. Would I need to publish this (and if so, I would guess publishing the plug-in)?
Send POST request to clover with new order object.
Encrypt Credit Card information.
Send POST request to pay passing order and encrypted credit card to API.
If successful, store auth code in application and allow purchase.
If not, display payment failure notice.
Once the application is authorized (has an auth code), does it need to request this for each purchase or only on the first use?