easy_pay_u_latam 0.1.20 → 0.1.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 170182b7358dc7f68f90de66fb2889ac7147f79c87cbd044ad30d5711ad40db0
4
- data.tar.gz: b5f9d50cf009589a175417a73c2472a5e89649544a24684b238cf94303776657
3
+ metadata.gz: a8eee2fadb4bd7eb0470ba74dfcb62ec90ee78bf824f2ac475ff4f78355c40c9
4
+ data.tar.gz: 1c45508dddbdde111502644b6002bbd946b072bfb86eb8a830a62addfdda8e2c
5
5
  SHA512:
6
- metadata.gz: a20619fc34009f743dea0ae3427654bae4c47ba3ad831fafa7eb598d5a12b2b1c6514cf1b895c85f17775e27840e2736d89a5005aa555052a49b5656e224e429
7
- data.tar.gz: ae097259e80d99d3c87d96ca4e5a8f1f43460d4badfe7fcf138005839342a44f18fecef5d8afbe90985182b5069d062d08d7729f541800772b9fd9b522e5b2ae
6
+ metadata.gz: 458e3f68a3313d423748841f18315e2fecf1ecb300a1611cda682e634c440e43777c05a825bab1a1f5b0b77e5a244a316428f4f667483928816145236dcc4118
7
+ data.tar.gz: 1ebbdb3e0f24f4903b69c5401f66501d4dc316965d555d3f3530484c19f1e0738c262c0fb78e11d38ea044d7b635981771a9d86a01cd75ed6322071fbae17fa1
@@ -56,27 +56,27 @@
56
56
  }, 100);
57
57
 
58
58
  $('#new-credit-card-modal').on('shown.bs.modal', function () {
59
- if (self.create_subscription_after_new_card == true){
60
- swal({
61
- title: 'Confirmación',
62
- text: "Cargaremos a tu tarjeta principal mensualmente el valor del plan hasta que canceles la subscripción.",
63
- type: 'info',
64
- showCancelButton: true,
65
- confirmButtonColor: '#3085d6',
66
- cancelButtonColor: '#d33',
67
- confirmButtonText: 'Si, continuar',
68
- cancelButtonText: "Cancelar"
69
- }).then((result) => {
70
- if (result) {
71
- $scope.$evalAsync(function(){
72
- ('#new-credit-card-modal').modal("show");
73
- });
74
- }
75
- else{
76
- self.create_subscription_after_new_card = false;
77
- }
78
- });
79
- }
59
+ // if (self.create_subscription_after_new_card == true){
60
+ // swal({
61
+ // title: 'Confirmación',
62
+ // text: "Cargaremos a tu tarjeta principal mensualmente el valor del plan hasta que canceles la subscripción.",
63
+ // type: 'info',
64
+ // showCancelButton: true,
65
+ // confirmButtonColor: '#3085d6',
66
+ // cancelButtonColor: '#d33',
67
+ // confirmButtonText: 'Si, continuar',
68
+ // cancelButtonText: "Cancelar"
69
+ // }).then((result) => {
70
+ // if (result) {
71
+ // $scope.$evalAsync(function(){
72
+ // ('#new-credit-card-modal').modal("show");
73
+ // });
74
+ // }
75
+ // else{
76
+ // self.create_subscription_after_new_card = false;
77
+ // }
78
+ // });
79
+ // }
80
80
  })
81
81
  }
82
82
 
@@ -127,6 +127,10 @@
127
127
  $http.get("/easy_pay_u_latam/api/v1/pay_u_cards.json", {params: params}).then(
128
128
  function(res, status){
129
129
  self.cards = res.data.cards;
130
+ //Si el usuario seleccinó un plan se crea la subscripción automaticamente
131
+ if (self.create_subscription_after_new_card == true){
132
+ self.CreateSubscription();
133
+ }
130
134
  },
131
135
  function(res, status){
132
136
  }
@@ -161,10 +165,7 @@
161
165
  $("#new-credit-card-modal").modal("hide");
162
166
  swal("¡Excelente!", "¡La tarjeta de crédito creada con éxito!", "success");
163
167
 
164
- //Si el usuario seleccinó un plan se crea la subscripción automaticamente
165
- if (self.create_subscription_after_new_card == true){
166
- self.CreateSubscription();
167
- }
168
+
168
169
  },
169
170
  function(res, status){
170
171
  self.card_loading = false;
@@ -1,3 +1,3 @@
1
1
  module EasyPayULatam
2
- VERSION = '0.1.20'
2
+ VERSION = '0.1.21'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_pay_u_latam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - DEVPENGUIN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-13 00:00:00.000000000 Z
11
+ date: 2018-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails