• Resolved nmakeski

    (@nmakeski)


    Hi

    We are trying to configure credit card payments via the Paypal Payment Plugin. The connection to our paypal business account works fine, when I connect it via button automatically and also when I type in the API Credentials manually.

    Somehow on the cart site when I am trying to finish an order and choose Paypal as a Payment option, I get to the paypal login page where I can authenticate my account successfully. Now the problem is, that after that when I want to finish the payment it says that my credit card can’t be used for payments. We get the same error on every paypal account that tries to create a payment. I’ve already had 2 tickets open with the Paypal Support and nobody could help me. Do you have an idea, what could be causing this error?

    Friendly regards
    Nik

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @nmakeski,

    Have you also tried this with a PayPal sandbox business account connected to rule out any issues related with the currently connected one?
    The plugin log files may contain more information and an error message that could help better judge the problem.
    So I suggest enabling Logging in the plugin settings and then attempting again to pay for an order.
    When the Debug ID for a relevant transaction is logged, then we can guide the PayPal support in a better direction to investigate deeper if we don’t find any issues on a plugin level.

    You can share the logs either here in the forums or privately with us from here:
    https://paypal.inpsyde.com/docs/request-support/
    If you send us a private message, then please include a link to this thread.
    Thanks!

    Kind regards,
    Niklas

    Same problem here. Payment by card does not work for about 17 hours.
    https://prntscr.com/26t3ty7

    My can’t show ‘credit card’ button.Only the ‘Paypal’ button.

    When I test in sandbox, the button show well. But not work in normal connect.

    Please tell me how to fix it.

    Thread Starter nmakeski

    (@nmakeski)

    Hi Niklas

    Where can I activate the logs?

    Friendly regards
    Nikola

    Thread Starter nmakeski

    (@nmakeski)

    Hi

    Found the logs.

    2022-02-11T12:50:09+00:00 DEBUG POST https://api.paypal.com/v1/oauth2/token?grant_type=client_credentials
    Response Debug ID: e3684b7d654c4
    Response: Array
    (
        [code] => 200
        [message] => OK
    )
    
    2022-02-11T12:50:10+00:00 DEBUG POST https://connect.woocommerce.com/ppcsandbox/v2/customer/partner-referrals
    Request Body: {"partner_config_override":{"partner_logo_url":"https:\/\/connect.woocommerce.com\/images\/woocommerce_logo.png","return_url":"https:\/\/tobacco-and-more.ch\/wp-admin\/admin.php?page=wc-settings&tab=checkout&section=ppcp-gateway","return_url_description":"Return to your shop.","show_add_credit_card":true},"products":["EXPRESS_CHECKOUT"],"legal_consents":[{"type":"SHARE_DATA_CONSENT","granted":true}],"operations":[{"operation":"API_INTEGRATION","api_integration_preference":{"rest_api_integration":{"integration_method":"PAYPAL","integration_type":"FIRST_PARTY","first_party_details":{"features":["PAYMENT","FUTURE_PAYMENT","REFUND","ADVANCED_TRANSACTIONS_SEARCH","VAULT"],"seller_nonce":"a1233wtergfsdt4365tzrshgfbaewa36AGa1233wtergfsdt4365tzrshgfbaewa36AG"}}}}]}
    Response Debug ID: 9d82fd1fea6e9
    Response: Array
    (
        [code] => 201
        [message] => Created
    )
    
    2022-02-11T12:50:38+00:00 DEBUG GET https://api.paypal.com/v1/notifications/webhooks
    Response Debug ID: b48439ab96159
    Response: Array
    (
        [code] => 200
        [message] => OK
    )
    
    2022-02-11T12:50:38+00:00 DEBUG POST https://api.paypal.com/v1/notifications/webhooks
    Request Body: {"url":"https:\/\/tobacco-and-more.ch\/wp-json\/paypal\/v1\/incoming","event_types":[{"name":"CHECKOUT.ORDER.APPROVED"},{"name":"CHECKOUT.ORDER.COMPLETED"},{"name":"PAYMENT.CAPTURE.REFUNDED"},{"name":"PAYMENT.CAPTURE.REVERSED"},{"name":"PAYMENT.ORDER.CANCELLED"},{"name":"PAYMENT.CAPTURE.DENIED"},{"name":"PAYMENT.CAPTURE.COMPLETED"}]}
    Response Debug ID: 5b9b522464d59
    Response: Array
    (
        [code] => 201
        [message] => Created
    )
    
    2022-02-11T12:50:38+00:00 INFO Webhooks subscribed.
    2022-02-11T12:50:39+00:00 DEBUG GET https://api.paypal.com/v1/notifications/webhooks
    Response Debug ID: 1d9305be74b88
    Response: Array
    (
        [code] => 200
        [message] => OK
    )
    
    2022-02-11T12:50:46+00:00 DEBUG POST https://api.paypal.com/v1/notifications/simulate-event
    Request Body: {"webhook_id":"3ND1686299697070D","event_type":"CHECKOUT.ORDER.APPROVED","resource_version":"2.0"}
    Response Debug ID: 264ba52cf9723
    Response: Array
    (
        [code] => 202
        [message] => Accepted
    )
    
    2022-02-11T12:52:40+00:00 INFO Received simulated webhook.
    2022-02-11T13:02:12+00:00 DEBUG GET https://api.paypal.com/v1/notifications/webhooks
    Response Debug ID: 57b91eb5a35b1
    Response: Array
    (
        [code] => 200
        [message] => OK
    )
    
    2022-02-11T13:02:13+00:00 DEBUG GET https://api.paypal.com/v1/notifications/webhooks
    Response Debug ID: 5ac58b7578778
    Response: Array
    (
        [code] => 200
        [message] => OK
    )
    
    2022-02-11T13:02:18+00:00 DEBUG POST https://api.paypal.com/v1/notifications/simulate-event
    Request Body: {"webhook_id":"3ND1686299697070D","event_type":"CHECKOUT.ORDER.APPROVED","resource_version":"2.0"}
    Response Debug ID: 1ffa4d51fa262
    Response: Array
    (
        [code] => 202
        [message] => Accepted
    )
    
    2022-02-11T13:03:27+00:00 DEBUG GET https://api.paypal.com/v1/notifications/webhooks
    Response Debug ID: 411caf63e7c69
    Response: Array
    (
        [code] => 200
        [message] => OK
    )
    
    2022-02-11T13:03:28+00:00 DEBUG GET https://api.paypal.com/v1/notifications/webhooks
    Response Debug ID: b936db075374f
    Response: Array
    (
        [code] => 200
        [message] => OK
    )
    
    2022-02-11T13:03:32+00:00 INFO Received simulated webhook.
    2022-02-11T13:04:01+00:00 DEBUG POST https://connect.woocommerce.com/ppcsandbox/v2/customer/partner-referrals
    Request Body: {"partner_config_override":{"partner_logo_url":"https:\/\/connect.woocommerce.com\/images\/woocommerce_logo.png","return_url":"https:\/\/tobacco-and-more.ch\/wp-admin\/admin.php?page=wc-settings&tab=checkout&section=ppcp-gateway","return_url_description":"Return to your shop.","show_add_credit_card":true},"products":["EXPRESS_CHECKOUT"],"legal_consents":[{"type":"SHARE_DATA_CONSENT","granted":true}],"operations":[{"operation":"API_INTEGRATION","api_integration_preference":{"rest_api_integration":{"integration_method":"PAYPAL","integration_type":"FIRST_PARTY","first_party_details":{"features":["PAYMENT","FUTURE_PAYMENT","REFUND","ADVANCED_TRANSACTIONS_SEARCH","VAULT"],"seller_nonce":"a1233wtergfsdt4365tzrshgfbaewa36AGa1233wtergfsdt4365tzrshgfbaewa36AG"}}}}]}
    Response Debug ID: 67245f3a151be
    Response: Array
    (
        [code] => 201
        [message] => Created
    )
    
    2022-02-11T13:04:49+00:00 DEBUG POST https://api.paypal.com/v2/checkout/orders
    Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"CHF","value":"16.90","breakdown":{"item_total":{"currency_code":"CHF","value":"7.90"},"shipping":{"currency_code":"CHF","value":"9.00"},"tax_total":{"currency_code":"CHF","value":"0.00"}}},"description":"","items":[{"name":"100 x Mata Leon Z101 Hygienemundst\u00fcck","unit_amount":{"currency_code":"CHF","value":"7.90"},"quantity":1,"description":"Die Hygiene Mundst\u00fccke von Mata Leon passen auf die Meisten Glas- und Alumundst\u00fccke. Diese kann man ganz einfach und bequem in ","sku":"THSK1151","category":"PHYSICAL_GOODS","tax":{"currency_code":"CHF","value":"0.00"}}],"payee":{"merchant_id":"KUNTWW92J3KNW"},"shipping":{"name":{"full_name":"Nikola Makeski"},"address":{"country_code":"CH","address_line_1":"Test","address_line_2":"","admin_area_1":"BE","admin_area_2":"Biel","postal_code":"2504"}}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"SET_PROVIDED_ADDRESS","landing_page":"BILLING","locale":"de-DE","brand_name":"Tobacco and more","return_url":"https:\/\/tobacco-and-more.ch\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/tobacco-and-more.ch\/checkout\/"},"payer":{"name":{"given_name":"Nikola","surname":"Makeski"},"email_address":"[email protected]","address":{"country_code":"CH","address_line_1":"Test","address_line_2":"","admin_area_1":"BE","admin_area_2":"Biel","postal_code":"2504"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"0788807082"}}},"payment_method":{"payee_preferred":"UNRESTRICTED","payer_selected":"PAYPAL"}}
    Response Debug ID: 446b2a1daec0b
    Response: Array
    (
        [code] => 201
        [message] => Created
    )
    
    2022-02-11T13:04:50+00:00 DEBUG POST https://api.paypal.com/v2/checkout/orders
    Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"CHF","value":"16.90","breakdown":{"item_total":{"currency_code":"CHF","value":"7.90"},"shipping":{"currency_code":"CHF","value":"9.00"},"tax_total":{"currency_code":"CHF","value":"0.00"}}},"description":"","items":[{"name":"100 x Mata Leon Z101 Hygienemundst\u00fcck","unit_amount":{"currency_code":"CHF","value":"7.90"},"quantity":1,"description":"Die Hygiene Mundst\u00fccke von Mata Leon passen auf die Meisten Glas- und Alumundst\u00fccke. Diese kann man ganz einfach und bequem in ","sku":"THSK1151","category":"PHYSICAL_GOODS","tax":{"currency_code":"CHF","value":"0.00"}}],"payee":{"merchant_id":"KUNTWW92J3KNW"},"shipping":{"name":{"full_name":"Nikola Makeski"},"address":{"country_code":"CH","address_line_1":"Test","address_line_2":"","admin_area_1":"BE","admin_area_2":"Biel","postal_code":"2504"}}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"SET_PROVIDED_ADDRESS","landing_page":"BILLING","locale":"de-DE","brand_name":"Tobacco and more","return_url":"https:\/\/tobacco-and-more.ch\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/tobacco-and-more.ch\/checkout\/"},"payer":{"name":{"given_name":"Nikola","surname":"Makeski"},"email_address":"[email protected]","address":{"country_code":"CH","address_line_1":"Test","address_line_2":"","admin_area_1":"BE","admin_area_2":"Biel","postal_code":"2504"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"0788807082"}}},"payment_method":{"payee_preferred":"UNRESTRICTED","payer_selected":"PAYPAL"}}
    Response Debug ID: cd41e4785d658
    Response: Array
    (
        [code] => 201
        [message] => Created
    )
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @nmakeski,

    Thanks for the log. There are no errors suspecting any failures though. Could you please give it a try with a PayPal sandbox account connected and a sandbox testing credit card?
    If you don’t have a sandbox account then you can send us a message from the link in my previous message and we can provide you with credentials for testing.
    Please include a link to this thread in that case. Thanks!

    @sztufi Please create your own thread as the issue you mention is likely unrelated to the one reported in this thread.
    Thanks!

    Kind regards,
    Niklas

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Credit card can’t be used for payment’ is closed to new replies.