Skip to content

Sandbox mode card is always declined using Advanced Integration v2 .net / html example #185

@henry-95

Description

@henry-95

I have compiled the .net / html example of the advanced integration v2 and running the client and server locally on my PC with a valid sandbox client id and secret, but my test card is being declined. I have not made any changes to the code. Is this setup no longer working? The processor response code is always "PPAR".

If you setup the .net example and make a purchase in sandbox mode with a sandbox card does it return status: "DECLINED" for you as well?

Here is the response object in my event log:

{ "id": "6JP29252C6226110E", "status": "COMPLETED", "payment_source": { "card": { "name": "xxxxxx", "last_digits": "4467", "expiry": "xxxxxx", "brand": "VISA", "available_networks": [ "VISA" ], "type": "CREDIT", "bin_details": { "bin": "xxxxxx", "issuing_bank": "Baxter Credit Union", "bin_country_code": "US" } } }, "purchase_units": [ { "reference_id": "default", "payments": { "captures": [ { "id": "2RU54950G4173603R", "status": "DECLINED", "amount": { "currency_code": "USD", "value": "100.00" }, "final_capture": true, "seller_protection": { "status": "NOT_ELIGIBLE" }, "seller_receivable_breakdown": { "gross_amount": { "currency_code": "USD", "value": "100.00" }, "paypal_fee": { "currency_code": "USD", "value": "3.49" }, "net_amount": { "currency_code": "USD", "value": "96.51" } }, "links": [ { "href": "https://api.sandbox.paypal.com/v2/payments/captures/2RU54950G4173603R", "rel": "self", "method": "GET" }, { "href": "https://api.sandbox.paypal.com/v2/checkout/orders/6JP29252C6226110E", "rel": "up", "method": "GET" } ], "create_time": "2025-05-12T16:51:25Z", "update_time": "2025-05-12T16:51:25Z", "network_transaction_reference": { "network": "VISA" }, "processor_response": { "response_code": "PPAR" } } ] } } ], "links": [ { "href": "https://api.sandbox.paypal.com/v2/checkout/orders/6JP29252C6226110E", "rel": "self", "method": "GET" } ] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions