Is there any API for checking a Status of a given Order with Realex Payments? - realex-payments-api

I am wanting to integrate Realex for my upcoming E-Commerce website. Imagine a scenario as mentioned below:
Customer came to the site, added the products to the Cart and moved ahead to payments.
Now, Customer entered his details on the payment page, and clicked
on the “Pay Now” button.
Imagine below given possible issues (Bad transactions) which might
occur and I am trying to overcome the same:
A. The request was processed successfully by Realex, and while redirecting to my Server URL there was a Network glitch due to which the Redirection failed.
B. The request was processed successfully by Realex, and as it was redirecting there was an Issue with my Server side (let’s suppose some Code related issue).
Now, in the both above mentioned scenarios I need to understand, if there is any way wherein I can check the given Order’s status without manually doing so?
i.e. Is there any Status check API which can provide me the status of the Order, i.e. if it was processed successfully and I might go ahead with the Order or either go ahead for the Refund to the given Customer?

Related

How to instantly know if payment was successful using recurring payments?

I am implementing recurring payments on a website through SetExpressCheckout and CreateRecurringPaymentsProfile.
Since it's being used for giving a user access to the member's area, I would need to know right away if the initial purchase was successful. Right now, CreateRecurringPaymentsProfile always returns 'Success' and profile status of 'Active' or 'Pending', and only through the IPN will I be able to know if the first transaction was successful or not. So the mechanism seems to be asynchronous (as opposed to Paypal's single transaction system).
Is there any way to know right away (synchronously) if the first payment is successful so that the website can let the member know if he/she has access to the member's area or do we have to tell the user that his/her access is pending verification or something like that?

Check if payment received paypal?

I am making a website where people will buy things. What I am wondering is if there is a way to check if payment was received in paypal, and then execute some code. Or should I add a paypal widget where when payment is done then it executes some code? This is all being done in HTML and CSS being it is a website.
Take a look at Instant Payment Notification (IPN). Any time a transaction hits your PayPal account their server will POST the transaction data to a URL you specify. Your script receives the data, verifies it with PayPal to ensure it actually came from them, and then you can process that data however you need to.
This gives you the ability to update your own database, send out your own email notifications, hit 3rd party web services, or anything else you want to automate when transactions hit your account. This works for payments, refunds, disputes, etc. so you can automate lots of tasks. It happens in real-time, too.

Structuring a booking website

I am very new to web development, and I'm trying to get my head around the most efficient method in creating the website.
The premise of the website is for booking activities in various locations. Processes I believe that would take place are:
Customer books activity;
Request updates database, and request is sent to vendor;
If vendor approves request, confirmation is sent to customer in the form of QR code, barcode, and numerical code (for redemption);
If approved, customer is charged the amount of the activity.
My question is what structure should I use in approaching this problem? My thoughts at the moment is placing the website in Google' app engine, using mySQL database.
Any thoughts would be greatly appreciated.
If you're using GAE, I suggest looking into NDB Datastore. https://cloud.google.com/appengine/docs/python/ndb/
Customer books activity → a) store in ndb datastore and b) verify that information → send to vendor
Confirmation (display URL code e.g. http://website.com/?c=generaterandomlongstringhere)
If URL is clicked, you can add a confirm as well after like accept | decline (e.g. http://website.com/?c=generaterandomlongstringhere&?v=acceptordecline)
Update NDB and Charge user

Problems with addSiteAccount1

I'm following the Quick Start Guide, as I've just received my credentials. I went through the coblogin and user (consumer) creation successfully. For test purposes, I was able to search and list sites and infos.
When I try to invoke addSiteAccount1 using the user session token for the consumer that I create, I get an HTTP 200 response and no apparent error, no exceptions or messages. The JSON response is basically the same as the one listed in the API documentation page, however there's no ID I can use to list transactions. I'm using a real login/password account information on Chase (site ID 643).
By the way, if I use random strings for credentialFields[0].value (username) and credentialFields[1].value (password), I get the same JSON response.
Please help me clarify what is not working here.
addSiteAccount1 API will give you a response which should contain "siteAccountId" field this is the identifier for that particular user's Chase bank site.
This siteAccountId will have itemIDs which resembles different 'container'(in Yodlee terminology) like, all saving and checking accounts comes under bank container,while credit card comes under credit's container similarly loan and mortgages are other containers.
Now even under a specific container you might have multiple accounts for e.g., Chase Bank container you might have 1 saving's account and 1 checking account, for each there will be an itemAccountId available. This uniquely identifies that specific account and you can pass this itemAccountId (which you can get from getItemSummariesForSite API) in executeUserSearchRequest API to get the transactions belongs to this specific account.
For further help here is the link for the API flow which will give you an idea about how and when to use different APIs.
OK, I think I got it working, but maybe some documentation clarification is needed. Provided that all mandatory parameters in the addSiteAccount1 are present and contain no errors, the method call will be successful for a given consumer.
I then visited the getAllSiteAccounts method, which would show me all account aggregation for that user/consumer. I was able to see all accounts added, some had a message like "REFRESH_COMPLETE" and others would have "AUTH_FAILED". It seems that once one adds an account, the Yodlee robots will try to login and then synchronize the data for a given account. Makes sense?
I was only able to verify if the bank credentials were OK by calling another method.

Update a website that already published and always have online users?

I am going to develop an asp.net website. My problem is think that now my site is published on the internet. 100 Users are already logged to my website. And they opened customer registration form in the website. So we know that when user log to a website he is sending a get request for the specific page. Then the server is sending that page in HTML format and it destroy the page from the server side.
So think that after server sent the customer registration form to the user I am going to do a update to my website. What I am doing is removing some input fields from the customer registration form. So imagine that at the user's end he can see 10 textboxes but my updated version will only contain 5 textboxes. So now what? What is going to happen? Is this lead to an error?
I just took a small example. Think that this situation occur in the middle of a transaction.
What is the scenario that use to update a website that already published and always have online users?.
Just Recycle the Application pool, this will make a new request for the online users. Like a fresh start.