So I am trying to send info into a Pay Simple API. I am not storing the data anywhere, I am simply inputting from the client to the server direct to the API request.
I have an SSL, is there anything else in particular I may need to worry about in terms of security? I figure since I am not storing the info anywhere except temporarily in the variable to make the request this will be secure enough just with SSL. Please let me know if I am mistaken.
Secondly I am trying to do the Meteor.call(‘addPaymentMethod’) and I would like to await the result from the call to determine if the number was accepted or not before continuing. What is the best way to do this? I am using the HTTP package in order to make the request.
I was trying to implement with both the async/await method as well as using the callPromise package but neither seemed to work correctly for me.
Does anyone have a quick snippet on how to await for the HTTP request to finish on a Meteor.call? Please let me know if posting my code would be helpful.