@pelcro/react-pelcro-js 4.0.0-alpha.56 → 4.0.0-alpha.58

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/index.cjs.js CHANGED
@@ -3353,7 +3353,7 @@ var select$6 = {
3353
3353
  };
3354
3354
  var create$5 = {
3355
3355
  title: "Add a new payment method",
3356
- subtitle: "Enter the fields below to add your credit card information"
3356
+ subtitle: "Enter the fields below to add your payment method information"
3357
3357
  };
3358
3358
  var paymentMethod_en = {
3359
3359
  update: update$3,
@@ -3931,7 +3931,7 @@ var labels$V = {
3931
3931
  myProfile: "My Profile",
3932
3932
  basicData: "Basic Data",
3933
3933
  paymentSource: "Payment methods",
3934
- addCard: "Add Card",
3934
+ addCard: "Add Payment Method",
3935
3935
  actions: "Actions",
3936
3936
  expiresOn: "Ends",
3937
3937
  until: "Until",
@@ -25060,7 +25060,7 @@ const PaymentMethodContainer = props => {
25060
25060
  };
25061
25061
  React.useEffect(() => {
25062
25062
  if (isStripeLoaded) {
25063
- window.Pelcro.user.createPaymentIntent({
25063
+ window.Pelcro.user.createSetupIntent({
25064
25064
  auth_token: window.Pelcro.user.read().auth_token
25065
25065
  }, (err, res) => {
25066
25066
  if (err) {
package/dist/index.esm.js CHANGED
@@ -3323,7 +3323,7 @@ var select$6 = {
3323
3323
  };
3324
3324
  var create$5 = {
3325
3325
  title: "Add a new payment method",
3326
- subtitle: "Enter the fields below to add your credit card information"
3326
+ subtitle: "Enter the fields below to add your payment method information"
3327
3327
  };
3328
3328
  var paymentMethod_en = {
3329
3329
  update: update$3,
@@ -3901,7 +3901,7 @@ var labels$V = {
3901
3901
  myProfile: "My Profile",
3902
3902
  basicData: "Basic Data",
3903
3903
  paymentSource: "Payment methods",
3904
- addCard: "Add Card",
3904
+ addCard: "Add Payment Method",
3905
3905
  actions: "Actions",
3906
3906
  expiresOn: "Ends",
3907
3907
  until: "Until",
@@ -25030,7 +25030,7 @@ const PaymentMethodContainer = props => {
25030
25030
  };
25031
25031
  useEffect(() => {
25032
25032
  if (isStripeLoaded) {
25033
- window.Pelcro.user.createPaymentIntent({
25033
+ window.Pelcro.user.createSetupIntent({
25034
25034
  auth_token: window.Pelcro.user.read().auth_token
25035
25035
  }, (err, res) => {
25036
25036
  if (err) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "4.0.0-alpha.56",
4
+ "version": "4.0.0-alpha.58",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",