@rebilly/instruments 3.24.4-beta.0 → 3.24.5-beta.0

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": "@rebilly/instruments",
3
- "version": "3.24.4-beta.0",
3
+ "version": "3.24.5-beta.0",
4
4
  "author": "Rebilly",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1065,6 +1065,25 @@
1065
1065
  }
1066
1066
  ]
1067
1067
  },
1068
+ {
1069
+ "apiName": "Instant Banking",
1070
+ "name": "Instant Banking",
1071
+ "landscapeLogo": null,
1072
+ "portraitLogo": null,
1073
+ "summary": "Instant Banking enables consumers to make payments to merchants using funds from their bank account.\n",
1074
+ "description": "Instant Banking enables consumers to make payments to merchants using funds from their bank account.\n",
1075
+ "countries": {
1076
+ "mode": "unknown",
1077
+ "values": []
1078
+ },
1079
+ "storefrontEnabled": true,
1080
+ "_links": [
1081
+ {
1082
+ "rel": "self",
1083
+ "href": "https://api.rebilly.com/payment-methods/Instant%20Banking"
1084
+ }
1085
+ ]
1086
+ },
1068
1087
  {
1069
1088
  "apiName": "InstantPayments",
1070
1089
  "name": "Instant Payments",
@@ -39,8 +39,13 @@ export default ({state = {}}) => {
39
39
 
40
40
  if (state.options.features.autoResult) {
41
41
  on({
42
- eventName: state.options.transactionType === 'setup' ?
43
- 'setup-completed' : 'purchase-completed',
42
+ eventName: 'purchase-completed',
43
+ callback: (payload) => {
44
+ showResult({state, payload});
45
+ }
46
+ });
47
+ on({
48
+ eventName: 'setup-completed',
44
49
  callback: (payload) => {
45
50
  showResult({state, payload});
46
51
  }