优易点
开发者服务中台
Use direct HTTP requests to create orders, verify login results, and confirm payment state
Use this track when you want a server-to-server integration instead of the SDK.
Use the HTTP track when your backend should:
When you need a full request URL, use:
YOUIDIAN_API_URL + route path
Send either pt or pt-BR in locale query parameters and request fields.
Both values use the same Brazilian Portuguese product copy, app
channel-visibility rules, and BRL pricing. If no Portuguese price exists, the
configured default price is returned. Hosted URLs also accept /pt-BR/....
${YOUIDIAN_API_URL}/api/v1/pay/orders${YOUIDIAN_API_URL}/api/v1/pay/orders/:id?appId=...${YOUIDIAN_API_URL}/api/v1/gateway/:appId/users/:userId/entitlements/consume-pool${YOUIDIAN_API_URL}/api/v1/gateway/:appId/users/:userId/entitlements/credit-buckets?keys=...${YOUIDIAN_API_URL}/api/v1/login/attempts${YOUIDIAN_API_URL}/api/v1/login/attempts/:attemptId${YOUIDIAN_API_URL}/api/v1/login/tokens/verify${YOUIDIAN_API_URL}/api/v1/gateway/:appId/login/users/:userId/phone${YOUIDIAN_API_URL}/api/v1/gateway/:appId/login/users/:userId/phone/code${YOUIDIAN_API_URL}/api/v1/gateway/:appId/login/users/:userId/phone/bind${YOUIDIAN_API_URL}/api/v1/gateway/:appId/messages/wechat/bindings${YOUIDIAN_API_URL}/api/v1/gateway/:appId/messages/send${YOUIDIAN_API_URL}/api/v1/pay/notify/STRIPE and ${YOUIDIAN_API_URL}/api/v1/pay/notify/PAYPALYour backend
-> POST ${YOUIDIAN_API_URL}/api/v1/pay/orders
-> store orderId from the response
-> return paymentUrl / qrCode / mobileUrl to the frontend
-> after the user pays, GET ${YOUIDIAN_API_URL}/api/v1/pay/orders/:id?appId=...
-> grant access only after the order is confirmed
Your frontend
-> start hosted login or a provider payment flow
-> send the resulting login token or payment result to your backend
-> let your backend verify the token or order status