Script AspClassic or VB Script
Budget: $10 – $15 USD
'''''''''''EXAMPLE IN CURL'''''''''''''
curl --request POST \
--url https://gateway-pix.website.com/production/v3/w \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cC' \
--header 'Content-Type: application/json' \
--data-raw '{
"value": 1.50,
"cpf": "00000000000",
"pix_key_type": "EVP",
"pix_key": "cb499c34-e6c0-4691-a087-5a2e1cef6889"
"webhook_url": "https://mywebsite.com.br/webhook"
}'
'''''''''' MIGRATE TO ASP CLASSIC OR VBS'''''''''''''''''''
'''''''''''EXAMPLE IN CURL'''''''''''''
Dim strUrl = "https://gateway-pix.website.com/production/v3/w"
Dim strBearer = "Bearer eyJhbGciOiJIUzI1NiIsInR5cC"
Dim strValue = "1.50"
Dim strcpf = "8989898989"
Dim strKeyType = "EVP"
Dim strPixKey = "cb499c34-e6c0-4691-a087-5a2e1cef6889"
Dim strWebhook = "https://mywebsite.com/webhook"
dim http
set http=CreateObject("MSXML2.ServerXMLHTTP")
http.open "POST",strURL,false
http.setRequestHeader "Content-Type","application/json"
http.setRequestHeader "Authorization",strBearer
(...)
http.send
Response.Write http.responseText
curl --request POST \
--url https://gateway-pix.website.com/production/v3/w \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cC' \
--header 'Content-Type: application/json' \
--data-raw '{
"value": 1.50,
"cpf": "00000000000",
"pix_key_type": "EVP",
"pix_key": "cb499c34-e6c0-4691-a087-5a2e1cef6889"
"webhook_url": "https://mywebsite.com.br/webhook"
}'
'''''''''' MIGRATE TO ASP CLASSIC OR VBS'''''''''''''''''''
'''''''''''EXAMPLE IN CURL'''''''''''''
Dim strUrl = "https://gateway-pix.website.com/production/v3/w"
Dim strBearer = "Bearer eyJhbGciOiJIUzI1NiIsInR5cC"
Dim strValue = "1.50"
Dim strcpf = "8989898989"
Dim strKeyType = "EVP"
Dim strPixKey = "cb499c34-e6c0-4691-a087-5a2e1cef6889"
Dim strWebhook = "https://mywebsite.com/webhook"
dim http
set http=CreateObject("MSXML2.ServerXMLHTTP")
http.open "POST",strURL,false
http.setRequestHeader "Content-Type","application/json"
http.setRequestHeader "Authorization",strBearer
(...)
http.send
Response.Write http.responseText