-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPayment3d.asp
50 lines (42 loc) · 1.85 KB
/
Payment3d.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!-- #INCLUDE virtual="/includes/CCProxySaleRequest.asp" -->
<%
'---------------------------------------------------------------------
'-- WireCard 3D Payment ----------------------------------------------
'---------------------------------------------------------------------
response.Clear()
dim statusCode, resultCode, resultMessage
dim saleRequest
set saleRequest = new CCProxySaleRequest
saleRequest.ServiceType = "CCProxy"
saleRequest.OperationType = "Sale3DSEC"
saleRequest.IPAddress = "127.0.0.1"
saleRequest.PaymentContent = "3D Payment Test"
saleRequest.InstallmentCount = "0"
saleRequest.Is3dsPayment = true
saleRequest.ErrorUrl = "http://localhost:81/PaymentResult.asp"
saleRequest.SuccessUrl = "http://localhost:81/PaymentResult.asp"
' Token Bilgileri
saleRequest.UserCode = "20391"
saleRequest.Pin = "CABF6CB01F0F4FD3A2A7"
saleRequest.BaseUrl = "https://test.wirecard.com.tr/SGate/Gate"
' Kredi Kartı Bilgileri
saleRequest.CreditCardNo = request.form("cc-number")
saleRequest.OwnerName = request.form("cc-name")
saleRequest.ExpireYear = request.form("cc-year")
saleRequest.ExpireMonth = request.form("cc-month")
saleRequest.Cvv = request.form("cvv")
saleRequest.Price = "1000"
' CardTokenization Bilgileri
saleRequest.RequestType = "0"
saleRequest.CustomerId = "0"
saleRequest.ValidityPeriod = "0"
saleRequest.CCTokenId = ""
' Müşteri Bilgileri
saleRequest.CustomerName = "Hakan"
saleRequest.CustomerSurname = "Günay"
saleRequest.CustomerEmail = "hakangunay@gmail.com"
dim wirecardResponse
wirecardResponse = saleRequest.Execute
response.write wirecardResponse
response.end
%>