@phala/pay 0.12.0 → 0.12.2
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/README.md +6 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,7 +48,6 @@ connects a wallet with wagmi, RainbowKit, ConnectKit, or AppKit, pass it in inst
|
|
|
48
48
|
apiBase="https://pay.example.com"
|
|
49
49
|
onSuccess={props.onPaid}
|
|
50
50
|
onExpire={props.onRetry}
|
|
51
|
-
buttonText="Pay with crypto"
|
|
52
51
|
/>
|
|
53
52
|
);
|
|
54
53
|
}
|
|
@@ -197,9 +196,8 @@ import { PaymentElement } from "@phala/pay-react";
|
|
|
197
196
|
new quote with the expired one. If your quote varies by anything else between attempts (a field
|
|
198
197
|
of your own form, say), pass it as `amount` or give the element a new `key` when it changes, or
|
|
199
198
|
a retry would reuse a key with another body.
|
|
200
|
-
- After the quote: the checkout, and a way back to the options ("
|
|
201
|
-
|
|
202
|
-
new payment" once credited.
|
|
199
|
+
- After the quote: the checkout, and a way back to the options ("Back") until a payment is on its
|
|
200
|
+
way, then "Start a new payment" once it is credited or does not complete.
|
|
203
201
|
- `createDepositAddress(option)` adds one quiet line at the end of the form, "Paying from an
|
|
204
202
|
exchange? Use a deposit address", for payers sending from an exchange or any wallet: it resolves
|
|
205
203
|
with the deposit address's `address` and `networks` and, to follow its payments, `clientSecret`;
|
|
@@ -314,11 +312,11 @@ import { DepositAddress } from "@phala/pay-react";
|
|
|
314
312
|
With `clientSecret` and `apiBase` it reads the address's public view about every three seconds and
|
|
315
313
|
lists its payments of the last 24 hours: "1.5 PHA received on Sepolia, 1 confirmation" once the
|
|
316
314
|
service sees the transfer (within about a block for a hinted payment, at the next discovery scan
|
|
317
|
-
otherwise), then "credited" (or rejected or reversed). Display only. It also states when
|
|
318
|
-
network
|
|
315
|
+
otherwise), then "credited" (or rejected or reversed). Display only. It also states when a payment on the
|
|
316
|
+
chosen network is usually credited: `<DepositAddress>` submits no transaction-hash hint (the
|
|
319
317
|
payer's wallet or exchange gives it no hash), so the service's 5-minute discovery scan plus the
|
|
320
|
-
view's `typical_credit_seconds` ("usually within about 6 minutes
|
|
321
|
-
|
|
318
|
+
view's `typical_credit_seconds` ("usually within about 6 minutes"); until the view is loaded it
|
|
319
|
+
names no time.
|
|
322
320
|
|
|
323
321
|
After ten minutes without a change in the public view, `<DepositAddress>` uses a base interval
|
|
324
322
|
of `max(pollInterval, 15000)` milliseconds, with the same jitter and failure backoff, so a longer
|