Paypal Log
REQUEST
{
"purchase_units": [
{
"custom_id": 16,
"items": [
{
"name": "Curso de Educa??o Política | Turma 01",
"quantity": "1",
"unit_amount": {
"currency_code": "BRL",
"value": "6.00"
}
}
],
"amount": {
"currency_code": "BRL",
"value": "6.00",
"breakdown": {
"item_total": {
"currency_code": "BRL",
"value": "6.00"
}
}
},
"payee": {
"email_address": "" }, "shipping": { "type": "SHIPPING", "name": { "full_name": ""
},
"address": {
"address_line_1": "", "address_line_2": "",
"admin_area_2": "Itajaí",
"admin_area_1": "",
"postal_code": "88309601",
"country_code": "BR"
}
}
}
],
"intent": "CAPTURE",
"payment_source": {
"paypal": {
"experience_context": {
"user_action": "PAY_NOW",
"payment_method_preference": "UNRESTRICTED",
"return_url": "https://egccapacitacoes.com.br/wp-json/tutor/v1/ecommerce-webhook?payment_method=paypal&encodedData=eyJzdWNHIDEN....",
"cancel_url": "https://egccapacitacoes.com.br?tutor_order_placement=failed&order_id=16"
},
"attributes": {
"vault": {
"store_in_vault": "xxxxxx",
"usage_type": "MERCHANT"
}
}
}
}
}
RESPONSE:
{
"name": "UNPROCESSABLE_ENTITY",
"details": [
{
"issue": "NOT_ENABLED_TO_VAULT_PAYMENT_SOURCE",
"description": "The API caller or the merchant on whose behalf the API call is initiated is not allowed to vault the given source. Please contact PayPal customer support for assistance."
}
],
"message": "The requested action could not be performed, semantically incorrect, or failed business validation.",
"debug_id": "8987ae34b3362",
"links": [
{
"href": "https://developer.paypal.com/api/rest/reference/orders/v2/errors/#NOT_ENABLED_TO_VAULT_PAYMENT_SOURCE",
"rel": "information_link",
"method": "GET"
}
]
}