@pisell/private-materials 3.3.87 → 3.3.89

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.
@@ -173,7 +173,17 @@ export default (function (_ref) {
173
173
  var _params = {};
174
174
  if (isPay) {
175
175
  var _deviceRef$current2;
176
- _params = {
176
+ _params = _objectSpread(_objectSpread({}, custom !== null && custom !== void 0 && custom.platform ? {
177
+ "operator_id": custom.operator_id,
178
+ "operator_type": custom.operator_type,
179
+ "platform": custom.platform,
180
+ "custom_payment_id": custom.custom_payment_id,
181
+ "service_charge": {
182
+ "amount": payRef.current.surMoney,
183
+ "percentage": payRef.current.surPercentRate
184
+ },
185
+ "original_amount": payRef.current.amount
186
+ } : {}), {}, {
177
187
  order_id: orderIdRef.current,
178
188
  amount: payRef.current.total,
179
189
  card_reader_type: eftposRef.current,
@@ -182,7 +192,7 @@ export default (function (_ref) {
182
192
  pay_param_base64: encodeURIComponent(btoa(encodeURIComponent(JSON.stringify(_objectSpread(_objectSpread({}, dataRef.current), {}, {
183
193
  number: numRef.current
184
194
  })))))
185
- };
195
+ });
186
196
  } else {
187
197
  var _deviceRef$current3;
188
198
  _params = {
@@ -166,6 +166,17 @@ var windcave_default = ({
166
166
  let _params = {};
167
167
  if (isPay) {
168
168
  _params = {
169
+ ...(custom == null ? void 0 : custom.platform) ? {
170
+ "operator_id": custom.operator_id,
171
+ "operator_type": custom.operator_type,
172
+ "platform": custom.platform,
173
+ "custom_payment_id": custom.custom_payment_id,
174
+ "service_charge": {
175
+ "amount": payRef.current.surMoney,
176
+ "percentage": payRef.current.surPercentRate
177
+ },
178
+ "original_amount": payRef.current.amount
179
+ } : {},
169
180
  order_id: orderIdRef.current,
170
181
  amount: payRef.current.total,
171
182
  card_reader_type: eftposRef.current,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.87",
3
+ "version": "3.3.89",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,8 +60,8 @@
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
62
  "@pisell/utils": "3.0.0",
63
- "@pisell/icon": "0.0.11",
64
63
  "@pisell/materials": "3.3.32",
64
+ "@pisell/icon": "0.0.11",
65
65
  "@pisell/date-picker": "3.0.4"
66
66
  },
67
67
  "peerDependencies": {