Helpfulbox Now Offers Free POS Software for restaurants, kiosk, and any other retails business completely free used windows cashier system or as full blown POS. You will able to print to kitchen, display orders on the kitchen screen, manage inventory, employee, report, customer loyalty offers, employee management, delivery address track and much more, al for free.

How to use stripe payment with vb6?

Date: Thu-Apr-5-2018-
Response
0
Here is vb6 example.


Dim StripeURL, APIKey

Function makeStripeAPICall(requestBody)
    Dim objXmlHttpMain
    
    Set objXmlHttpMain = CreateObject("Msxml2.ServerXMLHTTP")
    On Error Resume Next
    objXmlHttpMain.open "POST", StripeURL, False
    objXmlHttpMain.setRequestHeader "Authorization", "Bearer " & APIKey
    objXmlHttpMain.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    objXmlHttpMain.send requestBody

    makeStripeAPICall = objXmlHttpMain.responseText
End Function

Function chargeCard(month, year, cvc, number, cost)
    Dim cardDetails, requestBody
    cardDetails = "source[exp_month]=" & month & "&source[exp_year]=" & year & "&source[number]=" & number & "&source[cvc]=" & cvc
    requestBody = "currency=usd&amount=" & cost & "&source[object]=card&" & cardDetails
    
    chargeCard = makeStripeAPICall(requestBody)
End Function

Function chargeCardWithToken(token, cost)
    Dim requestBody
    requestBody = "currency=usd&amount=" & cost & "&source=" & token
    
    chargeCardWithToken = makeStripeAPICall(requestBody)
End Function




Private Sub Form_Load()

StripeURL = "https://api.stripe.com/v1/charges"
APIKey = "sk_test_BQokikJOvBiI2HlWgH4olfQ2"

MsgBox (chargeCard("01", "20", "123", "4242424242424242", "400"))
End Sub


[d] By: demography
Date: Thu-Apr-5-2018
Response
What is 1 + 100



Helpfulbox Now Offers Free POS Software

for restaurants, kiosk, and any other retails business completely free. It can be used as windows cashier system or as full blown POS. You will able to print to kitchen, display orders on the kitchen screen, manage inventory, employee, report, customer loyalty offers, employee management, delivery address track and much more, all for free.

Just Updated::