invoicing_payments_processing 1.1.56 → 1.1.58
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/invoice.rb +1 -1
- data/lib/invoicing_payments_processing.rb +16 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffa569d58e22432b0ad9f214a6e83faef4f424c0
|
4
|
+
data.tar.gz: 2dc2ab0fc91b4b7350985678eefb3865bbba9e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdd78f088152e5373a9eff70f66d7ab5629dd290349e84e8d9aa7c91ebb0ad3530ab2c97efda541ad0c56de463b932f05fa9f3f9f6f2231009779fe83ac940b7
|
7
|
+
data.tar.gz: 20252301b10406afce4d398ebf1e5bcd9965b985b84afcbd5be6b98519661ad97d7e42bdf9aeebbefa66845babd6197e56f3b4102aa94d66904329beae5acb5f
|
data/lib/invoice.rb
CHANGED
@@ -246,7 +246,7 @@ module BlackStack
|
|
246
246
|
end
|
247
247
|
|
248
248
|
# return url
|
249
|
-
"#{BlackStack::InvoicingPaymentsProcessing::
|
249
|
+
"#{BlackStack::InvoicingPaymentsProcessing::paypal_orders_url}/cgi-bin/webscr?" + URI.encode_www_form(values)
|
250
250
|
end
|
251
251
|
|
252
252
|
# retorna true si el estado de la factura sea NULL o UNPAID
|
@@ -13,10 +13,19 @@ module BlackStack
|
|
13
13
|
|
14
14
|
# static attributes
|
15
15
|
@@paypal_business_email = "sardi.leandro.daniel@gmail.com"
|
16
|
+
@@paypal_orders_url = BlackStack::InvoicingPaymentsProcessing::PAYPAL_ORDERS_URL
|
17
|
+
@@paypal_ipn_listener = "#{BlackStack::Pampa::api_url.to_s}/api1.3/accounting/paypal/notify_new_invoice.json"
|
18
|
+
|
16
19
|
@@products_descriptor = []
|
17
20
|
@@plans_descriptor = []
|
18
|
-
|
21
|
+
|
19
22
|
# getters & setters
|
23
|
+
def self.set_config(h)
|
24
|
+
@@paypal_business_email = h[:paypal_business_email]
|
25
|
+
@@paypal_orders_url = h[:paypal_orders_url]
|
26
|
+
@@paypal_ipn_listener = h[:paypal_ipn_listener]
|
27
|
+
end
|
28
|
+
|
20
29
|
def self.set_paypal_business_email(email)
|
21
30
|
@@paypal_business_email = email
|
22
31
|
end # def self.set_paypal_business_email
|
@@ -25,10 +34,14 @@ module BlackStack
|
|
25
34
|
@@paypal_business_email
|
26
35
|
end # def self.set_paypal_business_email
|
27
36
|
|
28
|
-
def self.
|
29
|
-
|
37
|
+
def self.paypal_orders_url()
|
38
|
+
@@paypal_orders_url
|
30
39
|
end
|
31
40
|
|
41
|
+
def self.paypal_ipn_listener()
|
42
|
+
@@paypal_ipn_listener
|
43
|
+
end
|
44
|
+
|
32
45
|
|
33
46
|
def self.set_products(h)
|
34
47
|
@@products_descriptor = h
|