new

By default, we use LWP::UserAgent->new as the UserAgent. you can pass ua or ua_args to use a different one.

Arguments

All those arguments can be passed into Business::Eway->new() or pass into $eway->request later

Amount (required)

The amount of the transaction in dollar form

(ie $27.00 transaction would have a Amount value of "27.00")

Currency (required)

Three letter acronym of the currency code according to ISO 4217 (ie British Pound Sterling would be 'GBP')

Default: 'GBP'

ReturnUrl (required)

The web address to direct the customer with the result of the transaction.

CancelURL (required)

The web address to direct the customer when the transaction is cancelled.

PageTitle

This is value will be displayed as the title of the browser.

Default: eWAY Hosted Payment Page

PageDescription

This value will be displayed above the Transaction Details.

Default: Blank

PageFooter

This value will be displayed below the Transaction Details.

Language

The two letter acronym of the language code. supported languages now:

English EN
Spanish ES
French FR
German DE
Dutch NL

Default: EN

CompanyName

This will be displayed as the company the customer is purchasing from, including this is highly recommended.

CompanyLogo

The url of the image can be hosted on the merchants website and pass the secure https:// path of the image to be displayed at the top of the website. This is the top image block on the webpage and is restricted to 960px X 65px. A default secure image is used if none is supplied.

PageBanner

The url of the image can be hosted on the merchants website and pass the secure https:// path of the image to be displayed at the top of the website. This is the second image block on the webpage and is restricted to 960px X 65px. A default secure image is used if none is supplied.

CustomerFirstName

CustomerLastName

CustomerAddress

CustomerCity

CustomerState

CustomerPostCode

CustomerCountry

CustomerPhone

CustomerEmail

Customer Information

InvoiceDescription

This field is used to display to the user a description of the purchase they are about to make, usually product summary information.

MerchantReference

MerchantInvoice

This is a number created by the merchant for this transaction.

MerchantOption1

MerchantOption2

MerchantOption3

This field is not displayed to the customer but is returned in the result string. Anything can be used here, useful for tracking transactions

Eway will POST to your ReturnUrl (or CancelURL) when you finish the transaction (or click Cancel button). the POST would contain a param AccessPaymentCode which you can request to get the transaction status.

TIPS

I need params in ReturnUrl

For example, you want your ReturnUrl to be 'http://mysite.com/cgi-bin/cart.cgi?cart_id=ABC'.

As a valued partner and proud supporter of MetaCPAN, StickerYou is
happy to offer a 10% discount on all Custom Stickers,
Business Labels, Roll Labels,
Vinyl Lettering or Custom Decals. StickerYou.com
is your one-stop shop to make your business stick.
Use code METACPAN10 at checkout to apply your discount.