Worldpay is online payment gateway which is used to make online
payment. In worldpay there are two types of payments
- Oneoff Payment
- Recurring Payment
Oneoff Payment means instant payment or single payment. In this type
of payment the payment is done at once.
Recurring Payment means multiple payments which can be done weekly ,
monthly or yearly. This type of payment has certain start date of
payment.
When we register with Worldpay we will be given two separate URLs for
each method of payment and currency set we will be using. One will be
the URL for the Test Environment and the other will be the URL for
the Production Environment.
Initially the integration is done with Test Environment. After being
successful integration with Test Environment stuff can be copied from
Test Enviornment to Production.
To integrate with Worldpay we need to hit following urls
"https://secure-test.worldpay.com/wcc/purchase"
for Test Enviornment.
"https://secure.worldpay.com/wcc/purchase"
for Production.
Both urls need certain parameters. Some of them are mandatory and
some optional.
Mandatory Parameters:-
1. instId : Your Worldpay Installation ID. This is a unique
6-digit reference number assigned to us. It tells us which payment
methods and currencies your installation supports.
- cartId : A reference we assign to help us identify the purchase.
- Amount : The total cost of the purchase.
- Currency : The purchase currency
- testMode : 100 for Test Enviornment/0 for Production
After redirecting on Worldpay we will see the following screen
From here we can select any card type and will process for payment.
After a successful payment a response is generated which can be used
to trigger in our system after writing a server side script.
The redirection from Worldpay may be customize. It means after a
successful payment if we wish that shopper may be redirected to our
website.
To make redirection at requested url resultY and resultC files are
used whose code may be customized. ResultY is for successful payment
and resultC is for cancelled payment.
We can add our own details to the result page, in order to
individualise each transaction. For example, we can add the shopper’s
name, the product description and the cost.
Payment Response Message:-
We can set up and use the Payment Response messages feature, which
enables us to automate and control ourwebsite. The Payment Response
feature posts the payment information from Worldpay server to a URL
on our server securely.
References:-
More details about Worlpay Integration may be get from
following urls
If you need any sample apex code you may contact to me at excellencegaur@gmail.com.
~Vikas
No comments:
Post a Comment