Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Alpha Bank
2017
/
1.0 03.08.2013
1.1 16.10.2013
(. )
1.2 23.12.2013
(. )
1.3 18.3.2014
(. )
1.4 20.05.2014
(. )
1.5 13.8.2014 .
(. )
1.6 01.10.2014
(. )
xml
1.7 19.10.2015
queries
Masterpass
1.8 04.04.2016
VISA Electron
1.8.1 17.02.2017 Recurring Payments
ALPHA
BANK.
, , ,
.
,
, , ,
, , ALPHA BANK.
/
.
2 43
Alpha e-Commerce Re-direct
1. ................................ 4
2. ................................................................................. 5
2.1. ................................................................................................ 5
2.2. ................................................................. 5
2.3. ................................................................................................. 6
2.4. (Recurring Payments). ............................................. 8
3. (Checkout Page) ............................................................. 9
4. (Confirmation URL).............................................. 15
4.1. (Success Confirmation URL)......... 15
4.2. (Failure Confirmation URL)......... 19
5. Digest ..................................................................................................... 21
5.1. digest ...................................................... 26
6. xml queries.28
6.1. Digest ..................................................................................................... 28
6.1.1. Digest XML .................................................................. 29
6.2. digest XML Response ............................................ 32
6.2.1. digest XML Response ..................................... 32
. E-MAIL ( )....35
. ALPHA BANK...38
. ...40
. ...42
3 43
Alpha e-Commerce Re-direct
1.
Alpha e-
Commerce :
1.
Alpha e-Commerce, .
:
a. FORM Action POST URL: https://alpha.test.modirum.com/vpos/shophandlermpi
mid: ( mail )
Shared secret key: ( mail )
b.
CVV2
Visa 4509036603437007 12/19 464 test
MasterCard 5100990637713009 01/20 200 test
American Express 375537684045006 01/18 4664/663 test
,
( 0.20)
c. Test BackOffice
URL: https://alpha-admin.test.modirum.com/mpivposmngr
Username: ( mail )
Password: ( mail )
2.
Alpha e-Commerce ( )
3.
e-mail ecommerce@alpha.gr
, .
4. ( URL
Alpha e-Commerce) :
1.
2. () / FAX
3. E-MAIL
4.
5. /
6.
7. SITE
8.
9.
10.
11. LOGO WALLETS*
*
. , Logos Technical
Integration.zip banner
12. &
13.
4 43
Alpha e-Commerce Re-direct
2.
2.1.
Alpha Bank
, 24 24, 365
, , .
Alpha e-
Commerce.
1. Re-direct
, ,
, (HTTP Post Method).
2. XML Direct
,
. SSL encryption 256 bit
Visa, MasterCard American Express.
, Re-direct.
2.2.
Re-direct Alpha e-Commerce
:
a. (checkout page)
b. (Success Confirmation URL)
c. (Failure Confirmation URL)
:
, layout
(payment template). , :
a. default css (
). css
( e-mail Alpha e-
Commerce: ecommerce@alpha.gr) server
server cssUrl.
, url css https.
5 43
Alpha e-Commerce Re-direct
b. default xslt (
). xslt
( e-mail Alpha e-Commerce:
ecommerce@alpha.gr) server
: ,
Alpha Bank Alpha e-Commerce
Logos Technical Integration.zip.
,
default (. , ).
default
responsive design.
web (.. tablet)
(
minimum pixels responsive design 300 pixels).
,
(
)
BackOffice Alpha e-Commerce.
2.3.
e-shop, :
1. ,
(checkout page)
2. ,
Alpha e-Commerce.
, payMethod
:
a. ,
(American Express, Visa, MasterCard, Maestro, DINERS).
b. (wallet), Masterpass.
3. , Alpha e-Commerce
digest (. 5)
4. , Alpha e-Commerce
(payment template) browser .
5. ,
( 1)
a.
(American
Express, Visa, MasterCard, Maestro, DINERS),
Alpha Bank :
o (image)
6 43
Alpha e-Commerce Re-direct
o , ,
b. (wallet)
Masterpass.
Masterpass
, Alpha Bank ,
.
Masterpass Alpha e-Commerce,
.
Masterpass, online ,
.
Masterpass,
.
,
. Masterpass
(American Express, Visa, MasterCard, Diners Club).
Masterpass (checkout)
Alpha e-Commerce
( lightbox),
Masterpass United Kingdom wallet Masterpass
wallet ,
6. 3D Secure (
Visa / MasterCard / American Express), browser
,
.
(authentication) ,
(authorization). ,
7. Alpha e-Commerce :
a. , Alpha e-Commerce
(Success Confirmation URL)
. , Alpha e-Commerce e-mail
(, )
(. , 1 2)
7 43
Alpha e-Commerce Re-direct
b. , Alpha e-Commerce
(Failure Confirmation URL)
.
, timeout
Alpha e-Commerce 30.
2.4. (Recurring
Payments).
Alpha e-Commerce
(Recurring Payments).
/ online,
, ,
.
,
( )
:
1) e-commerce (
3D-Secure)
2) Alpha e-Commerce
, .
:
1)
extRecurringfrequency extRecurringenddate
2) ,
e-mail ecommerce@alpha.gr.
, Alpha e-Commerce
2 .
.
3 4.1
Alpha e-Commerce.
8 43
Alpha e-Commerce Re-direct
3. (Checkout Page)
Alpha e-Commerce http post
method .
(checkout page),
Alpha e-Commerce http POST HTML
, .
1 (
1 mid N10
T)
ISO 639-1
2 lang A2
: el
: en
3 deviceCategory N1
4 orderid AN50
T.
5 orderDesc AN128
6 orderAmount N15
(.. 0,10 10,00 10.45,
1345,23)
7 currency A3 ISO 4217.
: EUR
e-mail
8 payerEmail AN64
,
1
: , : , :
9 43
Alpha e-Commerce Re-direct
9 payerPhone N30
,
10 billCountry A2 3166-1 (.. GR, US,
IT)
11 billState AN50
12 billZip A16 ..
13 billCity AN64
14 billAddress AN100
/
(
15 weight N12 )
(.. 5,00 10,00 30.00)
/
mm
(
16 dimensions N25 )
xx
(.. 200x100x40)
17 shipCountry A2
3166-1 (.. GR, US, IT)
18 shipState AN50
..
19 shipZip A16
20 shipCity AN64
21 shipAddress AN...100
.
22 addFraudScore N12 Fraud Score
Server (
)
10 43
Alpha e-Commerce Re-direct
23 maxPayRetries ..2
24 reject3dsU ..1
. :
visa
mastercard
maestro
amex
25 payMethod A15
diners
auto:MasterPass
,
2
sale ( ) 1
3
authorization ( )
26 trType N1 2
,
sale ()
O
(),
27 extInstallmentoffset N2 (
)
O
(
)
28 extInstallmentperiod / N2 extInstallmentoffset
>1
(recurring payments)
(recurring payment)
(
29 extRecurringfrequency N3
)
28
365
2
3
11 43
Alpha e-Commerce Re-direct
(
)
30 extRecurringenddate / N8 extRecurringfrequency
YYYYMMDD
(1825
).
(installments)
.
31 blockScore N9 Fraud
Score Server (
)
url
32 cssUrl AN128 css,
url
33 confirmUrl AN128
(Success confirmation URL)
url
34 cancelUrl AN128
(Failure confirmation
URL)
35 var1 AN255
() (
)
( var2
var5
)
36 var2 AN255 Var2
Var5
12 43
Alpha e-Commerce Re-direct
var5
)
Var2
Var5
( var2
var5
)
38 var4 AN255 Var2
Var5
.
:
Web browser
39 var5 AN255 mobile
IP TV
Var2
Var5
shared
40 digest secret key
5
13 43
Alpha e-Commerce Re-direct
AUTHORIZATION VISA 5,00.
,
e-shop (.. JSP, ASP).
: ,
.. HTML JavaScript (
5 Digest)
14 43
Alpha e-Commerce Re-direct
4. (Confirmation
URL)
Alpha e-Commerce
. ,
server 2 ,
(Success Confirmation URL)
(Failure Confirmation URL).
/ browser
redirection Success Confirmation URL / Failure Confirmation URL,
background
confirmation. , response ,
response message confirmUrl cancelUrl, .
Url.
background confirmation
Alpha e-Commerce .
4.1.
(Success Confirmation URL)
server Alpha e-
Commerce . URL
confirmUrl.
1 mid N10
2 orderid AN50
3 status 10 :
15 43
Alpha e-Commerce Re-direct
AUTHORIZED
PRE-AUTH
CAPTURED SALE
4 orderAmount N15
5 currency A3
6 paymentTotal N15
orderAmount
(
7 message
)
8 riskScore N11
H
visa
mastercard
9 payMethod 15 maestro
amex
diners
Masterpass
16 43
Alpha e-Commerce Re-direct
10 txId N20
Alpha e-Commerce
11 paymentRef AN6
12 digest digest
confirm url
.
.
:
1) message .
2) riskscore score.
3) payMethod .
4) TxId system error,
response.
5) paymentRef
.
,
.
, ,
.
(recurring payment),
Alpha e-Commerce
.
,
url .
17 43
Alpha e-Commerce Re-direct
Success Confirmation URL fields (Recurring Payments)
Field (HTTP
/
/ POST
parameter)
1 mid
2 orderid
:
3 status AUTHORIZED PRE-AUTH
CAPTURED SALE
4 orderAmount
5 currency
6 paymentTotal orderAmount
7 message (
)
8 riskScore
H
visa
mastercard
9 payMethod maestro
amex
diners
Masterpass
10 txId
Alpha e-Commerce
11 sequence
12 seqTxId TxId
13 paymentRef
14 digest digest
18 43
Alpha e-Commerce Re-direct
4.2.
(Failure Confirmation URL)
server Alpha e-
Commerce . URL
cancelUrl.
,
.
:
, ,
.
Alpha e-Commerce Failure Confirmation Url
.
2 orderid
3 status (. )
4 orderAmount
5 currency
6 paymentTotal orderAmount
7 message (
)
8 riskScore
H
visa
mastercard
9 payMethod maestro
amex
diners
Masterpass
10 txId
Alpha e-Commerce
status
11 paymentRef CANCELED
Alpha e-Commerce
12 digest digest
19 43
Alpha e-Commerce Re-direct
3 (status) :
Message
CANCELED
REFUSED
ERROR
1.
2.
3. X Internet
4. Internet
20 43
Alpha e-Commerce Re-direct
5. Digest
.
(..
, ..). Alpha e-Commerce,
, .
Alpha e-Commerce
DIGEST.
:
1) , SHARED
SECRET KEY,
2)
checkout digest
3) digest
(
)
.
Digest :
1) (post_fields_values)
string ( )
3) base64 sha-1
a. base64: ASCII
b. sha-1: hash ,
:
JavaScript ( ), shared secret key ,
Digest . server side
scripting (.. PHP, ASP)
e-shops.
21 43
Alpha e-Commerce Re-direct
digest :
2. String checkout
checkout , string
checkout :
string ,
22 43
Alpha e-Commerce Re-direct
string
Checkout page fields
string UTF-8.
(
utf8_encode php Encoding.Convert .NET )
1:
.
mid lang
2:
string checkout,
.
String=9123456el098765_1,23http://www.alpha.gr/succeshttp://www.alpha.gr/fail
String=9123456el0987651,23http://www.alpha.gr/succeshttp://www.alpha.gr/fail
3:
string, .
String = 9123456el098765Order No
987651,23http://www.alpha.gr/succeshttp://www.alpha.gr/fail123qwerty456
24 43
Alpha e-Commerce Re-direct
4. string digest
digest :
Digest .
25 43
Alpha e-Commerce Re-direct
5.1. digest
, ,
Digest.
, digest,
.
, digest
digest .
: digest ,
digest
. ,
digest
digest .
Confirmation .
MPI Response ,
digest
.
+7Xh9CLl2ejhY9/8XtEwdDnknxs=
12 .
26 43
Alpha e-Commerce Re-direct
6. xml
queries
, ,
BackOffice, xml request
, .
test
Redirection.
xml request:
XML Response
BackOffice:
digest
XML API .
6.1. Digest
.
(..
, ..). Alpha e-Commerce,
, .
Alpha e-Commerce
DIGEST.
:
4) , SHARED
SECRET KEY,
5)
checkout digest
6) digest
(
)
.
28 43
Alpha e-Commerce Re-direct
6.1.1. Digest XML
digest XML :
<Message> .
http://www.w3.org/TR/2001/REC-
xml-c14n-20010315).
UTF-8.
2) SHARED SECRET KEY
SHARED SECRET KEY ,
.
. SHARED SECRET KEY
string
3) base64 sha-1
base64: ASCII
sha-1: hash ,
digest XML :
1. XML
2. element <Message>
3. element <Message>
4. shared secret key element <Message>
String
5. UTF8
6. string digest
7. digest element <Digest> XML
1. XML.
.
.
2. element <Message>.
element <Message>.
: namespace element
<Message xmlns="http://www.modirum.com/schemas"
lang="en" messageId="1370004820649" version="1.0">
<SaleRequest>
<Authentication>
<Mid>0000001</Mid>
</Authentication>
<OrderInfo>
<OrderId>1369981694782</OrderId>
<OrderDesc>
</OrderDesc>
<OrderAmount>1.25</OrderAmount>
<Currency>EUR</Currency>
<PayerEmail>andri.kruus@modirum.com</PayerEmail>
</OrderInfo>
<PaymentInfo>
<PayMethod>visa</PayMethod>
<CardPan>
</CardPan>
<CardExpDate>1406</CardExpDate>
<CardCvv2>756</CardCvv2>
</PaymentInfo>
</SaleRequest>
</Message>
3. element <Message>
30 43
Alpha e-Commerce Re-direct
rdExpDate>1406</CardExpDate><CardCvv2>756</CardCvv2></PaymentInfo></SaleRequest></Mes
sage>
5. UTF8
string UTF-8.
( utf8_encode php
Encoding.Convert .NET ).
6. string digest
Digest = Base64(SHA1((utf8bytes(canonicalize(Message))+utf8bytes(sharedSecret))
Digest= RzlvrA646BKHoMWCIA0OsO0hRWQ=
<Digest>RzlvrA646BKHoMWCIA0OsO0hRWQ=</Digest></VPOS>
31 43
Alpha e-Commerce Re-direct
6.2. digest XML
Response
, , XML
Response. Digest.
o response, digest,
.
, digest
digest .
: digest ,
digest
. ,
digest
digest .
6.2.1. digest
XML Response
XML
XML Response ,
digest
.
:
Ii1d/h+pB7/TVlCh9v39HxX7uqE=
XML .
33 43
Alpha e-Commerce Re-direct
A. E-MAIL ( )
: Alpha e-Commerce
.
: Merchant Name
: Merchant No
: Merchant URL
: Date started
: TX ID
: Order ID
: Payment Reference
: Order Amount
: Type
: Payment Method
() Wallet(s) Involved
Wallet Status
: Number of Installments
: Number of Recurring Frequency
: Number of Recurring Sequence
, PRE-AUTHORISATION,
(CAPTURE) 7 .
: Order Description
: Tax Id
Var2: Var2
Var3: Var3
Var4: Var4
Var5: Var5
/: Cardholder Name
: Card Number (Masked)
E-mail: Payer e-mail
: Payer Phone
IP: User IP
,
Alpha e-Commerce
ecommerce@alpha.gr
34 43
Alpha e-Commerce Re-direct
A.2 E-MAIL (CUSTOMER E-MAIL)
, e-mail
. e-mail
( ) :
: Merchant Name ID
/ Name on Card
e-mail
Merchant Name Alpha e-
Commerce Alpha Bank. :
: Merchant Name
: Merchant URL
: TX ID
: Order Amount
: Date started
: Payment Method
() Wallet(s) Involved
Wallet Status
: Order ID
: Payment Reference
: Number of Installments
: Number of Recurring Frequency
: Number of Recurring Sequence
e-mail
Alpha e-Commerce Alpha Bank.
Merchant Name.
/ .
, e-mail .
Alpha e-Commerce
Alpha Bank
35 43
Alpha e-Commerce Re-direct
B. (PURCHASE TRANSACTION RECEIPT)
/
PURCHASER NAME
/
ORDER I.D.
/
MERCHANT NAME
/ MERCHANT ON-LINE
ADDRESS
/ DESCRIPTION OF
MERCHANTISE - SERVICES
/
TRANSACTION AMOUNT
/
TRANSACTION DATE
/
CURRENCY
/
AUTHORIZATION CODE
E.C. (Electronic Commerce)* .
/
CANCELLATION POLICY , , .
36 43
Alpha e-Commerce Re-direct
. ALPHA BANK
.1
37 43
Alpha e-Commerce Re-direct
.2
38 43
Alpha e-Commerce Re-direct
.
( )
.
.
39 43
Alpha e-Commerce Re-direct
Invalid order desciption {0}
Invalid order id {0}
Invalid processing flow. Use application controls only!
Invalid recurring frequencry {0} or end date {1}
Invalid request, transaction not created
Invalid shipping weight {0}
Merchant {0} is not enabled
Merchant {0} not found in system
Merchant missing
Merchant will not allow this transaction, please select other payment method or
cancel
Pan not matching original
Payment method must be selected
Please report this error with id to email address below, if it happens again.
Recurring end date {1} is not in format {0}
Recurring end date exceeds maximum {0} days allowed for merchant
Recurring end date exceeds recurring max period {0}
Recurring frequency exceeds recurring merchant max period {0}
Recurring not enabled for merchant {0}
Recurring not enabled in system
Recurring parameter frequency {0} or end date {1} is invalid
Request data is not valid
Request validation failed (at merchant)
Security error, invalid digest.
Security violation
Service provider is not active, transaction can not performed
Sorry, this card can not accpeted for installment payments, use another card
Sorry, this card can not accpeted for recurring payments, use another card
Sorry, this card can not accpted currently, please use another
System error id: {0}
System error, digest calculation error
Transaction missing or expired
Transaction operation notes may not be empty
Transaction operation reference may not be empty
Warning: Shipping service error, shipping unavailable
Your card is not recognized by system
Your session has been expired!
40 43
Alpha e-Commerce Re-direct
.
( )
o BackOffice
Alpha e-Commerce , message response
.
.
00 APPROVED OR COMPLETED SUCCESSFULLY
01 REFER TO CARD ISSUER
02 REFER TO SPECIAL CONDITIONS FOR CARD ISSUER
03 INVALID MERCHANT
04 PICK-UP
05 DO NOT HONOR
06 ERROR
08 HONOR WITH IDENTIFICATION
11 APPROVED (VIP)
12 INVALID TRANSACTION
13 INVALID AMOUNT
14 INVALID CARD NUMBER (NO SUCH NUMBER)
15 NO SUCH ISSUER
30 FORMAT ERROR
31 BANK NOT SUPPORTED BY SWITCH
33 EXPIRED CARD
36 RESTRICTED CARD
38 ALLOWABLE PIN TRIES EXCEEDED
41 LOST CARD
43 STOLEN CARD, PICK UP
51 NOT SUFFICIENT FUND
54 EXPIRED CARD
55 INCORRECT PERSONAL IDENTIFICATION NUMBER
56 NO RECORD FOUND
57 TRANSACTION NOT PERMITTED TO CARDHOLDER
61 EXCEEDS WITHDRAWAL AMOUNT LIMIT
62 RESTRICTED CARD
65 EXCEEDS WITHDRAWAL FREQUENCY LIMIT
68 RESPONSE RECEIVED TOO LATE
75 ALLOWABLE NUMBER OF PIN TRIES EXCEEDED
76 APPROVED COUNTRY CLUB
APPROVED PENDING IDENTIFICATION (SIGN PAPER
77 DRAFT)
78 APPROVED BLIND
79 APPROVED ADMINISTRATIVE TRANSACTION
80 APPROVED NATIONAL NEG HIT OK
81 APPROVED COMMERCIAL
82 RESERVED FOR PRIVATE USE
83 NO ACCOUNTS
84 NO PBF
85 PBF UPDATE ERROR
86 INVALID AUTHORIZATION TYPE
41 43
Alpha e-Commerce Re-direct
87 BAD TRACK DATA
88 PTLF ERROR
89 INVALID ROUTE SERVICE
94 DUPLICATE TRANSACTION
N0 UNABLE TO AUTHORIZE
N1 INVALID PAN LENGTH
N2 PREAUTHORIZATION FULL
N3 MAXIMUM ONLINE REFUND REACHED
N4 MAXIMUM OFFLINE REFUND REACHED
N5 MAXIMUM CREDIT PER REFUND REACHED
N6 MAXIMUM REFUND CREDIT REACHED
N7 CUSTOMER SELECTED NEGATIVE FILE REASON
N8 OVER FLOOR LIMIT
N9 MAXIMUM NUMBER OF REFUND CREDIT
O1 FILE PROBLEM
O2 ADVANCE LESS THAN MINIMUM
O3 DELINQUENT
O4 OVER LIMIT TABLE
O5 PIN REQUIRED
O6 MOD 10 CHECK
O7 FORCE POST
O8 BAD PBF
O9 NEG FILE PROBLEM
P0 CAF PROBLEM
P1 OVER DAILY LIMIT
P2 CAPF NOT FOUND
P3 ADVANCE LESS THAN MINIMUM
P4 NUMBER TIMES USED
P5 DELINQUENT
P6 OVER LIMIT TABLE
P7 ADVANCE LESS THAN MINIMUM
P8 ADMINISTRATIVE CARD NEEDED
P9 ENTER LESSER AMOUNT
Q0 INVALID TRANSACTION DATE
Q1 INVALID EXPIRATION DATE
Q2 INVALID TRANSACTION CODE
Q3 ADVANCE LESS THAN MINIMUM
Q4 NUMBER TIMES USED
Q5 DELINQUENT
Q6 OVER LIMIT TABLE
Q7 AMOUNT OVER MAXIMUM
Q8 ADMINISTRATIVE CARD NOT
Q9 ADMINISTRATIVE CARD NOT
R0 APPROVED ADMINISTRATIVE
R1 APPROVED ADMINISTRATIVE
R2 APPROVED ADMINISTRATIVE
R3 CHARGEBACK, CUSTOMER FILE
R4 CHARGEBACK, CUSTOMER FILE
R5 CHARGEBACK, INCORRECT
R6 CHARGEBACK, INCORRECT
42 43
Alpha e-Commerce Re-direct
R7 ADMINISTRATIVE TRANSACTIONS
R8 CARD ON NATIONAL NEGATIVE FILE
S4 PTLF FULL
S5 CHARGEBACK APPROVED
S6 CHARGEBACK APPROVED
S7 CHARGEBACK ACCEPTED
S8 ADMN FILE PROBLEM
S9 UNABLE TO VALIDATE PIN; SECURITY MODULE IS DOWN
T1 INVALID CREDIT CARD ADVANCE INCREMENT
T2 INVALID TRANSACTION DATE
T3 CARD NOT SUPPORTED
T4 AMOUNT OVER MAXIMUM
T5 CAF STATUS = 0 OR 9
T6 BAD UAF
T7 CASH BACK EXCEEDS DAILY
T8 INVALID ACCOUNT
43 43
Alpha e-Commerce Re-direct