credit_card.type error
-
Hello Angell EYE team,
I am using PayPal for WooCommerce, REST mode, and the transactions are returned the following error:
– PayPal\Core\PayPalHttpConnection: INFO : POST https://api.paypal.com/v1/oauth2/token
– PayPal\Core\PayPalHttpConnection: INFO : Response Status : 200
– PayPal\Core\PayPalHttpConnection: INFO : POST https://api.paypal.com/v1/payments/payment
– PayPal\Core\PayPalHttpConnection: INFO : Response Status : 400
PayPal\Core\PayPalHttpConnection: ERROR : Got Http response code 400 when accessing https://api.paypal.com/v1/payments/payment. {“name”:”VALIDATION_ERROR”,”details”:[{“field”:”payer.funding_instruments[0].credit_card.type”,”issue”:”Credit card type must be visa, mastercard, amex, jcb, or discover.”}],”message”:”Invalid request. See details.”,”information_link”:”https://developer.paypal.com/docs/api/payments/#errors”,”debug_id”:”e638f61684308″}
12-19-2018 @ 05:22:19 – Got Http response code 400 when accessing https://api.paypal.com/v1/payments/payment.the sended data contains:
[payer] => PayPal\Api\Payer Object (
[_propMap:PayPal\Common\PayPalModel:private] => Array(
[payment_method] => credit_card
[funding_instruments] => Array(
[0] => PayPal\Api\FundingInstrument Object(
[_propMap:PayPal\Common\PayPalModel:private] => Array(
[credit_card] => PayPal\Api\CreditCard Object(
[_propMap:PayPal\Common\PayPalModel:private] => Array(
[type] => Card
[number] => ****************
[expire_month] => **
[expire_year] => ****
[cvv2] => ***
[first_name] => ******
[last_name] => ******
)
)
)
)
)
)
)there is a filter or some function that I can apply to the data, before sending, and change the [type] => Card to [type] => visa | mastercard | amex | jcb | discover, which are the accepted Card types?
Thanks!!!
- The topic ‘credit_card.type error’ is closed to new replies.