# Why are payments for WeChat Pay and Alipay getting refunded?

This can be a problem in 2 known circumstances:

1. If your customers aren't following the proper [WeChat Pay checkout flow](https://docs.chinapaymentsplugin.com/common-error-messages/common-wechat-pay-error-messages).
2. Endpoint URL configuration issues related to using API keys, instead of using Stripe Connect (read below).

Once a user has started a transaction, Stripe needs to reach your Stripe Endpoint URL in order to finish the process. Otherwise, Stripe will not complete the process and will refund the transaction.

The Endpoint URL looks something like this:

> <https://yoursite.com/wp-admin/admin-ajax.php?action=wpstripeglobal\\_source\\_chargeable\\&wpstripeglobal\\_source\\_chargeable=1>

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/66000491756/original/RjidXtZhXkLghjYtVvDfRlqFaANPmY2IsA.png?1600191566)

If your payment is refunded, something may be blocking the Stripe Endpoint URL. These may be the following reasons:

&#x20;   A. Your WordPress  Stripe Endpoint URL is protected behind Nginx or apache security protection which                     requires a user/password as shown below:

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/66000491755/original/c6NQORqUqKpRtaaDXV8DIAAKEvCOraSSag.png?1600191566)

&#x20;   B. Your Dashboard is not working for some reason.

&#x20;   C. Any other reason why your Stripe Endpoint URL is currently unavailable.

How do I test if the  Stripe Endpoint URL is available?

1\. Open a new incognito window in your browser.

2\. Go to your WordPress Dashboard.

3\. If you don't see the default WordPress Login screen and see something different, it's likely not available to Stripe and won't complete the transaction.

Clear any obstacles between Stripe and your Stripe Endpoint URL or use Stripe Connect to resolve the issue.


---

# 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/troubleshooting/why-are-payments-for-wechat-and-alipay-getting-refunded.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.
