create-mercato-app 0.6.6-develop.6229.1.ebe6706732 → 0.6.6-develop.6245.1.2be3b151f8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mercato-app",
3
- "version": "0.6.6-develop.6229.1.ebe6706732",
3
+ "version": "0.6.6-develop.6245.1.2be3b151f8",
4
4
  "type": "module",
5
5
  "description": "Create a new Open Mercato application",
6
6
  "main": "./dist/index.js",
@@ -327,7 +327,10 @@ export default function PaymentGatewayDemoPage() {
327
327
  async function refreshStatus(transactionId = transaction?.transactionId) {
328
328
  if (!transactionId) return
329
329
  try {
330
- const response = await apiCall(`/api/payment_gateways/status?transactionId=${encodeURIComponent(transactionId)}`)
330
+ const response = await apiCall('/api/payment_gateways/status', {
331
+ method: 'POST',
332
+ body: JSON.stringify({ transactionId }),
333
+ })
331
334
  if (response.ok) {
332
335
  const data = response.result as { status?: string } | null
333
336
  setTransaction((prev) => prev ? { ...prev, status: data?.status ?? prev.status } : prev)