• Resolved mosaicdigital

    (@mosaicdigital)



    I’m using Tutorm LMS 3’s native PayPal payment method In sandbox mode, it works normally I switched to live mode and got the following payment error message

    Fail Payment
    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.. UNPROCESSABLE_ENTITY : The requested action could not be performed, semantically incorrect, or failed business validation..

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mosaicdigital

    (@mosaicdigital)

    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"
    }
    ]
    }

    Hello @mosaicdigital,

    Thank you for reaching out to us.

    The error message NOT_ENABLED_TO_VAULT_PAYMENT_SOURCE typically occurs when the API caller does not have the necessary permissions to vault a payment source. Could you check the following settings?

    1. Enable VAULT under “Accept payments” : Ensure that VAULT is enabled in your PayPal settings. You can refer to this screenshot for guidance: Screenshot
    2. Webhook Settings : Make sure that VAULT events are selected in your webhook configuration. You can review this in the following screenshot: Screenshot
    Thread Starter mosaicdigital

    (@mosaicdigital)

    Checked the 2 items above and I still have the same error

    The Valt payment option was already active
    Screenshopt

    I enabled valt webhooks and I have the same problem
    Screenshot

    Thread Starter mosaicdigital

    (@mosaicdigital)

    read some reports from people who use woocomerce, who had the same problem, which was resolved by cleaning the database How could I remove some junk from the previous payment setup? Maybe something directly in the database The restore to default button didn’t work for me

    https://github.com/woocommerce/woocommerce-paypal-payments/issues/2948

    Hello @mosaicdigital,

    Thank you for checking those settings and providing the screenshots.

    Please ensure that your PayPal account is a business account and has the necessary permissions for vaulting. Also, double-check that you are using the correct Live API credentials (Client ID & Secret) for live mode, as using sandbox credentials in live mode can cause unexpected errors.

    If the issue persists, I recommend reaching out to PayPal support with the full error message and your account details so they can investigate further.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.