PayFabric / Hosted-Pages

Documents and sample code for developers who are going to integrate PayFabric hosted pages
0 stars 6 forks source link

Pay Fabric API/ Create Transaction #1

Closed Nabeel164 closed 6 years ago

Nabeel164 commented 6 years ago

When i create transaction (TrxKey) It's reponse give me null content in Asp.net. My DeviceID|Password is also valid... Help please ?

var client = new RestClient("https://sandbox.payfabric.com/v2/rest/api/transaction/create");var request = new RestRequest(Method.POST);request.AddHeader("authorization", "DeviceID|DevicePassword");request.AddHeader("content-type", "application/json");request.AddParameter("application/json", "{    "SetupId" : "PFP",    "Type" : "Sale",    "Customer" : "PayFabric",    "Amount" : 19.99,    "Currency" : "USD",    "Card" : {        "Account" : "4111111111111111",        "ExpDate": "0819",        "CardHolder" : {            "FirstName" : "John",            "LastName" : "Doe"        }    }}", ParameterType.RequestBody);IRestResponse response = client.Execute(request);

ShaunSharples commented 6 years ago

Hi @Nabeel164 , I assume because you close this that you managed to resolve this yourself? Please let us know if you are still experiencing issues.

Regards,

Shaun