@quintype/components 3.0.3-paytrail.1 → 3.0.3-paytrail.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/dist/cjs/index.js +13 -2
- package/dist/es/components/access-type.js +13 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5157,7 +5157,6 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
5157
5157
|
paymentType: paymentType
|
|
5158
5158
|
}, options));
|
|
5159
5159
|
|
|
5160
|
-
console.log("paymentObject------------", paymentObject);
|
|
5161
5160
|
return paymentOptions.paytrail ? paymentOptions.paytrail.proceed(paymentObject).then(function (response) {
|
|
5162
5161
|
return response.proceed(paymentObject);
|
|
5163
5162
|
}) : Promise.reject({
|
|
@@ -5525,6 +5524,7 @@ var mapDispatchToProps$1 = function mapDispatchToProps(dispatch) {
|
|
|
5525
5524
|
* initPaypalPayment| options(object), options={argType: "options",selectedPlan: selectedPlanObj,planType: planType,couponCode: "", recipientSubscriber: {}, returnUrl: "",cancelUrl:""} | Initialize the PayPal payment
|
|
5526
5525
|
* initOmisePayment| selectedPlan(object), planType(string) | Initialize the Omise payment
|
|
5527
5526
|
* initAdyenPayment| selectedPlan(object), planType(string), AdyenModal(React Component), locale(string) | Initialize Adyen Payment
|
|
5527
|
+
* initPaytrailPayment| selectedPlan(object), ptions={selectedPlan: selectedPlanObj,planType: planType,couponCode: "", recipientSubscriber: {}, returnUrl: "",cancelUrl:""} | Initialize the Paytrail payment
|
|
5528
5528
|
* getAssetPlans| storyId(string) | Get Asset Subscription Plans
|
|
5529
5529
|
* getSubscriberMetadata| Get the Subscriber Metadata
|
|
5530
5530
|
* setSubscriberMetadata| subscriberMetadata(object), subscriberMetadata={"address": {
|
|
@@ -5581,7 +5581,7 @@ var mapDispatchToProps$1 = function mapDispatchToProps(dispatch) {
|
|
|
5581
5581
|
* stagingHost="https://staging.accesstype.com"
|
|
5582
5582
|
* accessTypeBkIntegrationId={accessTypeBkIntegrationId}
|
|
5583
5583
|
* >
|
|
5584
|
-
* {({ initAccessType, checkAccess, accessUpdated, accessIsLoading, validateCoupon, initRazorPayPayment, initStripePayment, initPaypalPayment, getSubscriptionForUser, getSubscriberMetadata, setSubscriberMetadata }) => (
|
|
5584
|
+
* {({ initAccessType, checkAccess, accessUpdated, accessIsLoading, validateCoupon, initRazorPayPayment, initStripePayment, initPaypalPayment, initPaytrailPayment, getSubscriptionForUser, getSubscriberMetadata, setSubscriberMetadata }) => (
|
|
5585
5585
|
* <div>
|
|
5586
5586
|
* <PaymentCheckoutLayout
|
|
5587
5587
|
* accessIsLoading={accessIsLoading}
|
|
@@ -5591,6 +5591,7 @@ var mapDispatchToProps$1 = function mapDispatchToProps(dispatch) {
|
|
|
5591
5591
|
* initRazorPayPayment={initRazorPayPayment}
|
|
5592
5592
|
* initStripePayment={initStripePayment}
|
|
5593
5593
|
* initPaypalPayment={initPaypalPayment}
|
|
5594
|
+
* initPaytrailPayment={initPaytrailPayment}
|
|
5594
5595
|
* getSubscriptionForUser={getSubscriptionForUser}
|
|
5595
5596
|
* getgetSubscriberMetadata={getgetSubscriberMetadata}
|
|
5596
5597
|
* setSubscriberMetadata={setSubscriberMetadata}
|
|
@@ -5630,6 +5631,16 @@ var mapDispatchToProps$1 = function mapDispatchToProps(dispatch) {
|
|
|
5630
5631
|
* return props.initPaypalPayment(options);
|
|
5631
5632
|
* }
|
|
5632
5633
|
*
|
|
5634
|
+
* if (paymentGateway === "paytrail") {
|
|
5635
|
+
* const options = {
|
|
5636
|
+
* selectedPlan: plan,
|
|
5637
|
+
* planType: "standard",
|
|
5638
|
+
* returnUrl: `${document.location.origin}/paytrail-success.html`,
|
|
5639
|
+
* cancelUrl: `${document.location.origin}/paytrail-cancel.html`
|
|
5640
|
+
* };
|
|
5641
|
+
* return props.initPaytrailPayment(options);
|
|
5642
|
+
* }
|
|
5643
|
+
*
|
|
5633
5644
|
* if (paymentGateway === "omise") {
|
|
5634
5645
|
* return props.initOmisePayment(plan, "standard");
|
|
5635
5646
|
* }
|
|
@@ -683,7 +683,6 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
683
683
|
paymentType: paymentType
|
|
684
684
|
}, options));
|
|
685
685
|
|
|
686
|
-
console.log("paymentObject------------", paymentObject);
|
|
687
686
|
return paymentOptions.paytrail ? paymentOptions.paytrail.proceed(paymentObject).then(function (response) {
|
|
688
687
|
return response.proceed(paymentObject);
|
|
689
688
|
}) : Promise.reject({
|
|
@@ -1051,6 +1050,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
1051
1050
|
* initPaypalPayment| options(object), options={argType: "options",selectedPlan: selectedPlanObj,planType: planType,couponCode: "", recipientSubscriber: {}, returnUrl: "",cancelUrl:""} | Initialize the PayPal payment
|
|
1052
1051
|
* initOmisePayment| selectedPlan(object), planType(string) | Initialize the Omise payment
|
|
1053
1052
|
* initAdyenPayment| selectedPlan(object), planType(string), AdyenModal(React Component), locale(string) | Initialize Adyen Payment
|
|
1053
|
+
* initPaytrailPayment| selectedPlan(object), ptions={selectedPlan: selectedPlanObj,planType: planType,couponCode: "", recipientSubscriber: {}, returnUrl: "",cancelUrl:""} | Initialize the Paytrail payment
|
|
1054
1054
|
* getAssetPlans| storyId(string) | Get Asset Subscription Plans
|
|
1055
1055
|
* getSubscriberMetadata| Get the Subscriber Metadata
|
|
1056
1056
|
* setSubscriberMetadata| subscriberMetadata(object), subscriberMetadata={"address": {
|
|
@@ -1107,7 +1107,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
1107
1107
|
* stagingHost="https://staging.accesstype.com"
|
|
1108
1108
|
* accessTypeBkIntegrationId={accessTypeBkIntegrationId}
|
|
1109
1109
|
* >
|
|
1110
|
-
* {({ initAccessType, checkAccess, accessUpdated, accessIsLoading, validateCoupon, initRazorPayPayment, initStripePayment, initPaypalPayment, getSubscriptionForUser, getSubscriberMetadata, setSubscriberMetadata }) => (
|
|
1110
|
+
* {({ initAccessType, checkAccess, accessUpdated, accessIsLoading, validateCoupon, initRazorPayPayment, initStripePayment, initPaypalPayment, initPaytrailPayment, getSubscriptionForUser, getSubscriberMetadata, setSubscriberMetadata }) => (
|
|
1111
1111
|
* <div>
|
|
1112
1112
|
* <PaymentCheckoutLayout
|
|
1113
1113
|
* accessIsLoading={accessIsLoading}
|
|
@@ -1117,6 +1117,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
1117
1117
|
* initRazorPayPayment={initRazorPayPayment}
|
|
1118
1118
|
* initStripePayment={initStripePayment}
|
|
1119
1119
|
* initPaypalPayment={initPaypalPayment}
|
|
1120
|
+
* initPaytrailPayment={initPaytrailPayment}
|
|
1120
1121
|
* getSubscriptionForUser={getSubscriptionForUser}
|
|
1121
1122
|
* getgetSubscriberMetadata={getgetSubscriberMetadata}
|
|
1122
1123
|
* setSubscriberMetadata={setSubscriberMetadata}
|
|
@@ -1156,6 +1157,16 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
1156
1157
|
* return props.initPaypalPayment(options);
|
|
1157
1158
|
* }
|
|
1158
1159
|
*
|
|
1160
|
+
* if (paymentGateway === "paytrail") {
|
|
1161
|
+
* const options = {
|
|
1162
|
+
* selectedPlan: plan,
|
|
1163
|
+
* planType: "standard",
|
|
1164
|
+
* returnUrl: `${document.location.origin}/paytrail-success.html`,
|
|
1165
|
+
* cancelUrl: `${document.location.origin}/paytrail-cancel.html`
|
|
1166
|
+
* };
|
|
1167
|
+
* return props.initPaytrailPayment(options);
|
|
1168
|
+
* }
|
|
1169
|
+
*
|
|
1159
1170
|
* if (paymentGateway === "omise") {
|
|
1160
1171
|
* return props.initOmisePayment(plan, "standard");
|
|
1161
1172
|
* }
|