WorldPay支付网关设计说明文档格式.docx
- 文档编号:21329536
- 上传时间:2023-01-29
- 格式:DOCX
- 页数:11
- 大小:91.53KB
WorldPay支付网关设计说明文档格式.docx
《WorldPay支付网关设计说明文档格式.docx》由会员分享,可在线阅读,更多相关《WorldPay支付网关设计说明文档格式.docx(11页珍藏版)》请在冰豆网上搜索。
CMS.Thisisonlyavailableintheparameterssentinthecallback.Itis
notavailableforsubstitutionintothepagesenttotheshopper.
Status
PaymentGatewaystatus1normal0pause
参数说明
1.传递的参数列表
Format
Values
instId
InstallationID
cartId
Aparameterforyourownreferencewhichallowyoutotracktheorder.Itisreturnedtothemerchant
byemailand/orservercallbackdependingonhowyouhavechosenbeinformedofthepurchase.
testmode
Numeric.
0,100,101
ForlivetransactionstestModeisset"
0"
.
Fornormaltestingwhichalwaysresultsinasuccessfulauthorisationfortheorder,thisissetto100.
Fortestnonsuccessfultransactionsthevalueissetto101.
Canbeusedbythemerchanttoputtheaccountintotestmode.
Thisallowstestpurchasestobemadewithoutusingacreditcart.
currency
Alphanumeric
3characters
A3letterISOcoderepresentingcurrencyusedforpayment.ForexampleUSDrepresentsUnitedStatesdollars,GBPBritishpoundsandEUREuros.
desc
Max100characters
Freetextdescriptionofgoodsor
servicesbeingpurchased
Abriefdescriptionoftheitemsordered(upto255characters).Thisisusedintheorderpage,statementsandemailsformerchantandcustomer.Ifthedescriptionismorethan255charactersthenthefulldetailsaresentviaemail.
amount
Numeric
4characters
Adecimalnumberusedbytheshoppingcartgivingthetotalcostofthepurchaseintermsofthecurrencyunitchosenbythemerchant.
2.返回的参数列表
testMode
int
authCost
varchar
address
Thepostaladdressof
theshopper,as
enteredonthe
paymentform.
countryString
Thefullnameofthecountry,derivedfromthecountrycodesubmitted
toinitiatethispurchaseorsuppliedbytheshopper
callbackPW
installation
TheinstallationID
fax
Thefaxnumberofthe
shopper,asentered
onthepaymentform.
countryMatch
Y:
match
N:
nomatch(ie.mismatch)
B:
comparisonnotavailable
I:
contactcountrynotsupplied
S:
cardissuecountrynotavailable
Asinglecharacterdescribingtheresultofthecomparisonofthe
shopper'
scontactcountry(wheresupplied)andtheissuecountryofthe
cardusedbytheshopper(whereavailable).Notethatthisparameteris
retainedforbackwardcompatibilty-equivalentinformationisnow
providedaspartoftheAVSresults(seeAVSbelow).
transId
TheWorldPayIDforthistransaction
AVS
A4-characterstringgivingtheresultsof4internalfraud-relatedchecks.
Thecharactersrespectivelygivetheresultsofthefollowingchecks:
amountString
AnHTMLstringproducedfromtheamountandcurrencythatwere
submittedtoinitiatethispurchase
postcode
Thepostalcodeofthe
saddress,as
msgType
authResult
name
Thenameofthe
tel
Thetelephonenumber
oftheshopper,as
transStatus
Resultofthistransaction-"
Y"
forasuccessfulpaymentauthorisation,
"
C"
foracancelledpayment(notethatasacustomeryouwillneversee
adeclinedpaymentastheshopperisalwaysgiventheoptionof
retryingwithanothermeansofpayment,orelsecancellingthe
payment).
CustomerID
cardType
Thetypeofcardusedbytheshopper.
lang
Shopper'
slanguagechoiceas2characterISO639code,with
optionalregionalisationusing2charactercountrycodeseparatedby
hyphen.Forexample"
en-GB"
specifiesUKEnglish.Theshoppercan
alwayschoosealanguageontheWorldPaypagesorviabrowser
preferencesbutifyoursitehasalreadymadethischoicethenyou
canmakethingsmoreconvenientbysubmittingittous.
transTime
Longint
Timeofthistransactioninmillisecondssincethestartof1970GMT.This
isthestandardsystemdateinJava,andisalso1000xthestandardC
time_ttime.
authAmountString
HTMLstringproducedfromauthorisationamountandcurrency
authAmount
decimal
Amountthatthistransactionwasauthorisedfor,inthecurrencygiven
asauthCurrency.
ipAddress
Theipaddressofshopper
cost
Adecimalnumbergivingthecostofthepurchaseintermsofthe
majorcurrencyunite.g.12.56wouldmean12poundsand56pence
ifthecurrencywereGBP(PoundsSterling).Notethatthedecimal
separatormustbeadot(.),regardlessofthetypicallanguage
conventionforthechosencurrency.Thedecimalseparatordoesnot
needtobeincludediftheamountisanintegralmultipleofthemajor
currencyunit.Donotincludeotherseparators,forexamplebetween
thousands.
TheWorldPayIDforthisinstallation
compName
Nameofthecompanyassociatedwiththisinstallation
country
The2-letterISOcode
forthecountryofthe
shopper,asselected
rawAuthMessage
Textreceivedfromthebank(typicallyincludinganauthorisationcode,
orareasonforfailure).
Theemailaddress
authCurrency
Thecurrencyusedforauthorisation.
rawAuthCode
Asingle-characterbank(orinternalWorldPay)authorisationcode.This
isretainedforbackwardcompatibility.'
A'
means'
authorised'
andis
directlyequivalenttotransStatus='
Y'
.Failedtransactionsmayhavea
varietyofauthcodeswhichareusuallyexplainedmorefullyinthe
rawAuthMessageparameter.
Theuniquereference
suppliedbythe
merchantatthetime
ofthetransaction.
authMode
Specifiestheauthorisationmodetouse.Thisisonlyneededifyou
haveaccountswithdifferentauthorisationmodes,inordertospecify
whichtypeofaccounttouse.Ifthereisnoaccountwithamatching
authModethenthetransactionisrejected.Thevaluesare"
A"
fora
fullauth,or"
E"
forapre-auth.Intheresponse,thisparametercan
alsotakethevalue"
O"
whenperformingapost-auth(ontheadmin
serverorotherwise).
详细设计
1、系统在添加一个支付网关时,在数据库中添加相应的支付网关与相应的程序。
VSP选择一个系统支持的且VSP已注册的支付网关,然后填写相关的支付网关信息。
VSP为业务组选择一个已申请的支付网关。
用户在进行支付时,所根据用户所在的业务组设置的支付网关进行支付。
2、在业务组参数设置里选择一个支付网关,该参数为必选项。
VSP支付网关里的状态表示,如果VSP将某一个支付的状态设置暂停使用,使用的该支付网关的业务组下的用户,在使用信用卡支付时提示用户暂时无法使用信用卡进行支付。
返回参数
Array([testMode]=>
100[authCost]=>
5.0[currency]=>
NZD[address]=>
guangdongshenzhen[countryString]=>
China[callbackPW]=>
123456[installation]=>
97777[fax]=>
[countryMatch]=>
B[transId]=>
149339616[AVS]=>
0000[amountString]=>
NZ$5.00[postcode]=>
[msgType]=>
authResult[name]=>
leo[tel]=>
[transStatus]=>
Y[desc]=>
47[cardType]=>
Visa[lang]=>
en[transTime]=>
1135158210338[authAmountString]=>
NZ$5.00[authAmount]=>
5.0[ipAddress]=>
210.22.7.147[cost]=>
5.0[instId]=>
97777[amount]=>
5.0[compName]=>
COMBINEDTECHNOLOGYNZLTD[country]=>
CN[rawAuthMessage]=>
cardbe.msg.testSuccess[email]=>
***************[authCurrency]=>
NZD[rawAuthCode]=>
A[cartId]=>
123456aaaa[authMode]=>
A)
支付流程
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- WorldPay 支付 网关 设计 说明