@paydock/client-sdk 1.136.0 → 1.138.1-beta
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 +24 -1
- package/bundles/index.cjs +106 -67
- package/bundles/index.cjs.d.ts +6 -2
- package/bundles/index.mjs +106 -67
- package/bundles/index.mjs.d.ts +6 -2
- package/bundles/types/helper/browser.d.ts.map +1 -1
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +5 -1
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -1
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -1
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -1
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/index.d.ts +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
- package/bundles/widget.umd.js +106 -67
- package/bundles/widget.umd.js.d.ts +6 -2
- package/bundles/widget.umd.js.min.d.ts +6 -2
- package/bundles/widget.umd.min.js +1 -1
- package/docs/wallet-buttons-express-examples.md +23 -0
- package/docs/wallet-buttons-express.md +1 -1
- package/package.json +5 -4
|
@@ -633,6 +633,29 @@ button.onShippingAddressChange(async function(data) {
|
|
|
633
633
|
});
|
|
634
634
|
```
|
|
635
635
|
|
|
636
|
+
#### No shipping address
|
|
637
|
+
|
|
638
|
+
This is the case where no shipping address is required at all in the popup (e.g., digital goods, services, or virtual products, or Shipping Address collected separately by the merchant). The "Send to" UI field will not be shown in the Apple Pay sheet, it will be hidden.
|
|
639
|
+
|
|
640
|
+
**Important:**
|
|
641
|
+
- No shipping address should be provided in the meta object.
|
|
642
|
+
- Shipping address could be provided in the initial POST `/v1/charges/wallet` endpoint, if collected previously.
|
|
643
|
+
|
|
644
|
+
The required meta parameters for this case are:
|
|
645
|
+
- `required_shipping_contact_fields`: Only include contact fields if needed (phone, email), but NOT `postalAddress`.
|
|
646
|
+
|
|
647
|
+
```javascript
|
|
648
|
+
meta: {
|
|
649
|
+
"amount_label": "TOTAL",
|
|
650
|
+
"country": "AU",
|
|
651
|
+
"currency": "AUD",
|
|
652
|
+
"amount": 10,
|
|
653
|
+
"shipping_editing_mode": "available",
|
|
654
|
+
"required_shipping_contact_fields": ["phone", "email"],
|
|
655
|
+
"apple_pay_capabilities": ["credentials_available", "credentials_status_unknown", "credentials_unavailable"]
|
|
656
|
+
}
|
|
657
|
+
```
|
|
658
|
+
|
|
636
659
|
### Paypal Wallet Button Express
|
|
637
660
|
A full description of the meta parameters for [PaypalWalletButtonExpress](#PaypalWalletButtonExpress) meta parameters can be found [here](#PaypalWalletMeta). Below you will find a fully working html example.
|
|
638
661
|
|
|
@@ -126,7 +126,7 @@ If the determinated value is credentials_status_unknown, the payment possbily sh
|
|
|
126
126
|
| [merchant_capabilities] | <code>Array.<('supports3DS'\|'supportsEMV'\|'supportsCredit'\|'supportsDebit')></code> | Array of capabilities that the merchant supports, influencing the transaction processing features available. |
|
|
127
127
|
| [supported_networks] | <code>Array.<('visa'\|'masterCard'\|'amex'\|'chinaUnionPay'\|'discover'\|'interac'\|'jcb'\|'privateLabel')></code> | List of payment networks supported by the merchant for ApplePay transactions. |
|
|
128
128
|
| [required_billing_contact_fields] | <code>Array.<('email'\|'name'\|'phone'\|'postalAddress')></code> | Contact fields required from the user for billing purposes, improving transaction verification and fraud prevention. Phone and email are currently not returned by Apple. |
|
|
129
|
-
| [required_shipping_contact_fields] | <code>Array.<('email'\|'phone')></code> | Shipping contact fields that are mandatory to complete the transaction. Use email and phone to collect from customer wallet in the abscense of billing one. Required
|
|
129
|
+
| [required_shipping_contact_fields] | <code>Array.<('email'\|'phone'\|'postalAddress')></code> | Shipping contact fields that are mandatory to complete the transaction. Use email and phone to collect from customer wallet in the abscense of billing one. Include 'postalAddress' to show shipping address fields collection in the Apple Pay sheet. Required handling of onShippingAddressChange callback. |
|
|
130
130
|
| [supported_countries] | <code>Array.<string></code> | List of countries where ApplePay is supported by the merchant, restricting usage to specified regions. |
|
|
131
131
|
| [style] | <code>object</code> | Styling configuration for ApplePay buttons displayed during checkout. |
|
|
132
132
|
| [style.button_type] | <code>ApplePayButtonType</code> | Enum type to select the type of ApplePay button (e.g., 'buy', 'donate', etc.), providing user interface customization. |
|
package/package.json
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"name": "@paydock/client-sdk",
|
|
107
|
-
"version": "1.
|
|
107
|
+
"version": "1.138.1-beta",
|
|
108
108
|
"scripts": {
|
|
109
109
|
"build:doc": "node docs/html/marked.js",
|
|
110
110
|
"build:js": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
@@ -152,8 +152,8 @@
|
|
|
152
152
|
"@babel/plugin-transform-runtime": "7.24.3",
|
|
153
153
|
"@babel/polyfill": "7.12.1",
|
|
154
154
|
"@babel/preset-env": "7.24.5",
|
|
155
|
-
"@babel/runtime": "7.
|
|
156
|
-
"@babel/runtime-corejs2": "7.
|
|
155
|
+
"@babel/runtime": "7.28.4",
|
|
156
|
+
"@babel/runtime-corejs2": "7.28.4",
|
|
157
157
|
"@biomejs/biome": "2.2.0",
|
|
158
158
|
"@commitlint/cli": "19.5.0",
|
|
159
159
|
"@commitlint/config-conventional": "19.5.0",
|
|
@@ -220,7 +220,8 @@
|
|
|
220
220
|
"overrides": {
|
|
221
221
|
"sha.js@>=2.0.0 <=2.4.11": "2.4.12",
|
|
222
222
|
"pbkdf2": ">=3.1.3",
|
|
223
|
-
"form-data": ">=4.0.4"
|
|
223
|
+
"form-data": ">=4.0.4",
|
|
224
|
+
"qs": ">=6.14.1"
|
|
224
225
|
},
|
|
225
226
|
"engines": {
|
|
226
227
|
"node": ">=16.0.0"
|