AEON-Project / GameOn-TON-Hackathon

2 stars 1 forks source link

Error code 8016 when using tgPayment #6

Closed yuanzd123 closed 3 days ago

yuanzd123 commented 6 days ago

I am able to create order through this endpoint: https://sbx-crypto-payment-api.aeon.xyz/open/api/payment with this orderData: let orderData: OrderData = { appId: 'myappId assigned by AEON', merchantOrderNo: '17243134568514', orderAmount: '101', payCurrency: 'USD', userId: 'userId', customParam: '{"botName":"RRPaymentTestBot","orderDetail":"ABDC Test BAG ","chatId":"6831529261"}', paymentTokens: 'USDT,ETH', paymentExchange: '16f021b0-f220-4bbb-aa3b-82d423301957,9226e5c2-ebc3-4fdd-94f6-ed52cdce1420', orderModel: 'ORDER', tgModel: 'BROWSER', }

However, I am not able to create order through this endpoint: https://sbx-crypto-payment-api.aeon.xyz/open/api/tgPayment

I got this error: { "code": "8016", "msg": "Payment method not supported ", "model": null, "traceId": "6711c12d8788a6d0f7ebc72cd4ccbb1a", "success": false, "error": true }

Can you help me with this?

Thanks,

Koala-AEON commented 4 days ago

Sure! We are working on it and get back to you later.

Koala-AEON commented 4 days ago

I am able to create order through this endpoint: https://sbx-crypto-payment-api.aeon.xyz/open/api/payment with this orderData: let orderData: OrderData = { appId: 'myappId assigned by AEON', merchantOrderNo: '17243134568514', orderAmount: '101', payCurrency: 'USD', userId: 'userId', customParam: '{"botName":"RRPaymentTestBot","orderDetail":"ABDC Test BAG ","chatId":"6831529261"}', paymentTokens: 'USDT,ETH', paymentExchange: '16f021b0-f220-4bbb-aa3b-82d423301957,9226e5c2-ebc3-4fdd-94f6-ed52cdce1420', orderModel: 'ORDER', tgModel: 'BROWSER', }

However, I am not able to create order through this endpoint: https://sbx-crypto-payment-api.aeon.xyz/open/api/tgPayment

I got this error: { "code": "8016", "msg": "Payment method not supported ", "model": null, "traceId": "6711c12d8788a6d0f7ebc72cd4ccbb1a", "success": false, "error": true }

Can you help me with this?

Thanks,

Please try again, the problem is fixed.

yuanzd123 commented 3 days ago

@Koala-AEON Now I have this error instead:

response: {
  "code": "8011",
  "msg": "order not already exists",
  "model": null,
  "traceId": "6717453cc69efe52604f9e7f3dc08315",
  "success": false,
  "error": true
}
Koala-AEON commented 3 days ago

@Koala-AEON Now I have this error instead:

response: {
  "code": "8011",
  "msg": "order not already exists",
  "model": null,
  "traceId": "6717453cc69efe52604f9e7f3dc08315",
  "success": false,
  "error": true
}

Hi, everytime you place an order please use the uniqle merchantorderno. Merchantorderno can't be repeated.

yuanzd123 commented 3 days ago

it works, thanks