solidus_mp 0.1.1 → 0.1.2

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: d29c92bcb9ac399e83b18dcb26c1fc4c0a5afca5561ede0d588286a5cb4e59d8
4
- data.tar.gz: 6be444c317f9e23f20d357e44c02b8a354ef93d661044ba723acf1112095703f
3
+ metadata.gz: a92f139bc94952294898e8429b8a9f1108383bdcc7f133bff16bbd48729c8afa
4
+ data.tar.gz: f0d4b5c39e59879ea21b891cbe5301401eff848527eea9a6bb34fe799d409318
5
5
  SHA512:
6
- metadata.gz: 1069af3aa6e9e0587dae433367468370e94acbe16c3ae22138c0504a98caa14ff43e344e2e6d85ea7f489d394c31f69353665df500e29d7739d113adbd60c140
7
- data.tar.gz: 5cb336afb171bc853361e4e66d731ef81e1c4124d91cf1614efdf423c82887a1933171c0ff37c173f5ab69fb915f4fbdda4436e02c8e604783006fe55a4411a8
6
+ metadata.gz: 07d84ca6d807d13eb35c7802aa46b8187b31e5c02b09e62dced1f024f91d56e0553ecd962e44a322b1ffd9ffdb366883d677a8c0d8f24dad55c96837ab577745
7
+ data.tar.gz: 9364203529ea33840a93a6eb85440f150c0c1c41543bbd77c8744e7ef11eefdf7b6badbce57a121652693309e54eacae133cd0d8e919e9cc3d54066b6777d7e2
@@ -10,7 +10,7 @@ export default class extends Controller {
10
10
  // Anytime the controller is connected to the DOM
11
11
  async connect() {
12
12
  await loadMercadoPago()
13
- this.mp = new window.MercadoPago('TEST-dc17baa6-3344-4382-af3f-15d37f3ce4ae')
13
+ this.mp = new window.MercadoPago(this.publicKeyValue)
14
14
  // estilos dos iframes
15
15
  const styles = {
16
16
  style: {
@@ -1,4 +1,4 @@
1
- <div data-controller="credit-card" >
1
+ <div data-controller="credit-card" data-credit-card-public-key-value="<%= payment_method.preferences[:public_key] %>" >
2
2
 
3
3
  <!-- Numero do cartao -->
4
4
  <div class="relative mt-2 flex items-center">
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusMp
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_mp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - caio