cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 API with Payflow

Magento 2 API with Payflow

Hello

 

I am Testing Order Place API with Swagger.

 

Its successfully Working fine with Purchase Order and Check money.

 

now, I am checking with Payflow Pro and Payflow express than its giving an error.

 

I am checking with Payflow pro and giving me and error

 

message: "Invalid account number"

 

here is my request which I have passed in swagger

 

{
  "email":"ketan@yahoo.com",
   "paymentMethod":{
   "po_number":"string",
  "method":"payflowpro",
  "additional_data":{
        "user" : "****",
        "vendor" : "****",
        "partner" : "paypal",
        "pwd" : "****",
        "verbosity" : "HIGH",
        "BUTTONSOURCE" : "Magento_Cart_Community",
        "tender" : "C",
        "trxtype" : "A",
        "createsecuretoken" : "Y",
        "CUSTIP":"Local IP",
        "securetokenid" : "4a2dd2d5f4cabb9fdd8a590f2ce0bc5a",
        "silenttran" : "TRUE",
        "firstname" : "fname",
        "lastname" : "lname",
        "street" : "address",
        "city" : "Greer",
        "state" : "SC",
        "zip" : "29650",
        "country" : "US",
        "shiptofirstname" : "sname",
        "shiptolastname" : "slname",
        "shiptostreet" : "address",
        "shiptocity" : "Greer",
        "shiptostate" : "SC",
        "shiptozip" : "29650",
        "shiptocountry" : "US"
  },
  "extension_attributes":{
     "agreement_ids":[
        "string"
        ]
      }
   }
}

and i got below response

 

'result' => 
   array (
    'result' => '23',
    'pnref' => 'A1X0AC170F0A',
   'respmsg' => 'Invalid account number',
   'result_code' => '23',
  )

I have debug more than 1 day but not able to find any solution.

 

also i have check with Payflow Express with API but not able to work.

 

If any one know how we can set Payflow pro and express request parameter for place an order with api. please let us know.

 

Thanks,

Ketan

 

 

 

 

 

2 REPLIES 2

Re: Magento 2 API with Payflow

Hello @ketan panchal,

 

I'm not sure about it but there is a something credit card number issue you can check here https://www.paypalobjects.com/en_AU/vhelp/paypalmanager_help/result_values_for_transaction_declines_...

Let us know if you still got an issue.

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: Magento 2 API with Payflow

Hello @gelanivishal

 

I have set up sandbox on local server for Pay-flow pro and express.

 

I have used same credit card details on checkout pages and its working fine also, Place an order for same but while i am trying with an api its giving an error.

 

Did you know which are request parameter we have to send Payflow with API?