# UnionPay User Experience

## Desktop Experience

When a customer selects UnionPay as their payment method during WooCommerce checkout, they will see a secure inline card form directly on the checkout page. The form includes fields for:

* Card number
* Expiration date
* CVC

After entering their card details, the customer clicks the "Place Order" button. The payment is confirmed instantly via Stripe, and the customer is redirected to the order confirmation page.

{% hint style="success" %}
There is no redirect to an external page — the entire payment flow happens on your checkout page for a seamless experience.
{% endhint %}

## Mobile Experience

On mobile devices, the UnionPay inline card form is fully responsive and works seamlessly in all mobile browsers. Customers enter their card details just as they would on desktop, and payment is confirmed instantly.

## How It Differs from WeChat Pay and Alipay

| Feature                  | UnionPay             | WeChat Pay                | Alipay                     |
| ------------------------ | -------------------- | ------------------------- | -------------------------- |
| **Input Method**         | Inline card form     | QR code scan              | Redirect to Alipay         |
| **Redirect Required**    | No                   | No                        | Yes                        |
| **Mobile UX**            | Card form in browser | QR code on another device | Redirect in mobile browser |
| **Payment Confirmation** | Instant              | Polling (every 5s)        | Redirect back to site      |

## Test Card Numbers

When testing UnionPay payments in Stripe test mode, you can use the following test card number:

* **Card Number:** `6200 0000 0000 0005`
* **Expiration:** Any future date
* **CVC:** Any 3 digits

{% hint style="info" %}
For more test card numbers, refer to the [Stripe testing documentation](https://stripe.com/docs/testing#cards).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chinapaymentsplugin.com/payment-methods/unionpay/unionpay-user-experience.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
