Beispiel #1
0
	def on_update(self):
		create_payment_gateway(
			"Stripe-" + self.gateway_name, settings="Stripe Settings", controller=self.gateway_name
		)
		call_hook_method("payment_gateway_enabled", gateway="Stripe-" + self.gateway_name)
		if not self.flags.ignore_mandatory:
			self.validate_stripe_credentails()
Beispiel #2
0
	def on_update(self):
		create_custom_pos_fields()
		create_payment_gateway('Mpesa-' + self.payment_gateway_name, settings='Mpesa Settings', controller=self.payment_gateway_name)
		call_hook_method('payment_gateway_enabled', gateway='Mpesa-' + self.payment_gateway_name, payment_channel="Phone")

		# required to fetch the bank account details from the payment gateway account
		frappe.db.commit()
		create_mode_of_payment('Mpesa-' + self.payment_gateway_name, payment_type="Phone")
Beispiel #3
0
 def on_update(self):
     name = 'Paystack-{0}'.format(self.gateway_name)
     create_payment_gateway(
         name,
         settings='Paystack Settings',
         controller=self.gateway_name
     )
     call_hook_method('payment_gateway_enabled', gateway=name)
def create_payment_gateway_master_records():
	for payment_gateway in ["Razorpay", "PayPal"]:
		doctype = "{0} Settings".format(payment_gateway)
		doc = frappe.get_doc(doctype)
		doc_meta = frappe.get_meta(doctype)
		all_mandatory_fields_has_value = True

		for d in doc_meta.fields:
			if d.reqd and not doc.get(d.fieldname):
				all_mandatory_fields_has_value = False
				break

		if all_mandatory_fields_has_value:
			create_payment_gateway(payment_gateway)
 def validate(self):
     create_payment_gateway('Authorizenet')
     call_hook_method('payment_gateway_enabled', gateway="Authorizenet")
Beispiel #6
0
	def on_update(self):
		create_payment_gateway(
			"Braintree-" + self.gateway_name, settings="Braintree Settings", controller=self.gateway_name
		)
		call_hook_method("payment_gateway_enabled", gateway="Braintree-" + self.gateway_name)
Beispiel #7
0
 def validate(self):
     create_payment_gateway("AFS Payment")
     call_hook_method("payment_gateway_enabled", gateway="AFS Payment")
Beispiel #8
0
 def validate(self):
     create_payment_gateway("Razorpay")
     call_hook_method("payment_gateway_enabled", gateway="Razorpay")
     if not self.flags.ignore_mandatory:
         self.validate_razorpay_credentails()
 def validate(self):
     create_payment_gateway('Razorpay')
     call_hook_method('payment_gateway_enabled', gateway='Razorpay')
     if not self.flags.ignore_mandatory:
         self.validate_razorpay_credentails()
	def on_update(self):
		create_payment_gateway('Braintree-' + self.gateway_name, settings='Braintree Settings', controller=self.gateway_name)
		call_hook_method('payment_gateway_enabled', gateway='Braintree-' + self.gateway_name)
Beispiel #11
0
	def on_update(self):
		create_payment_gateway('Moneris')
Beispiel #12
0
	def validate(self):
		create_payment_gateway("PayPal")
		call_hook_method('payment_gateway_enabled', gateway="PayPal")
		if not self.flags.ignore_mandatory:
			self.validate_paypal_credentails()
Beispiel #13
0
	def on_update(self):
		create_payment_gateway('Stripe-' + self.gateway_name, settings='Stripe Settings', controller=self.gateway_name)
		call_hook_method('payment_gateway_enabled', gateway='Stripe-' + self.gateway_name)
		if not self.flags.ignore_mandatory:
			self.validate_stripe_credentails()
Beispiel #14
0
 def validate(self):
     create_payment_gateway('Paytm')
     call_hook_method('payment_gateway_enabled', gateway='Paytm')
Beispiel #15
0
	def on_update(self):
		create_payment_gateway('Stripe-' + self.gateway_name, settings='Stripe Settings', controller=self.gateway_name)
		call_hook_method('payment_gateway_enabled', gateway='Stripe-' + self.gateway_name)
		if not self.flags.ignore_mandatory:
			self.validate_stripe_credentials()
	def on_update(self):
		create_payment_gateway('GoCardless-' + self.gateway_name, settings='GoCardLess Settings', controller=self.gateway_name)
		call_hook_method('payment_gateway_enabled', gateway='GoCardless-' + self.gateway_name)
Beispiel #17
0
 def validate(self):
     create_payment_gateway("MokaPay")
     call_hook_method("payment_gateway_enabled", gateway=self.service_name)
     if not self.flags.ignore_mandatory:
         self.validate_mokapay_credentails()
Beispiel #18
0
 def validate(self):
     create_payment_gateway("Affirm")
     call_hook_method('payment_gateway_enabled', gateway=self.service_name)
Beispiel #19
0
 def validate(self):
     create_payment_gateway("Gateway Selector")
     call_hook_method("payment_gateway_enabled", gateway=self.service_name)
Beispiel #20
0
	def on_update(self):
		create_payment_gateway(
			"GoCardless-" + self.gateway_name, settings="GoCardLess Settings", controller=self.gateway_name
		)
		call_hook_method("payment_gateway_enabled", gateway="GoCardless-" + self.gateway_name)
Beispiel #21
0
 def validate(self):
     create_payment_gateway("Midtrans")
     call_hook_method('payment_gateway_enabled', gateway="Midtrans")
	def validate(self):
		create_payment_gateway('Razorpay')
		call_hook_method('payment_gateway_enabled', gateway='Razorpay')
		if not self.flags.ignore_mandatory:
			self.validate_razorpay_credentails()
 def validate(self):
     create_payment_gateway("AuthorizeNet")
     call_hook_method("payment_gateway_enabled", gateway=self.service_name)
     if not self.flags.ignore_mandatory:
         self.validate_authorizenet_credentails()
Beispiel #24
0
 def validate(self):
     create_payment_gateway("PayPal")
     call_hook_method('payment_gateway_enabled', gateway="PayPal")
     if not self.flags.ignore_mandatory:
         self.validate_paypal_credentails()
Beispiel #25
0
 def on_update(self):
     create_payment_gateway('GoCardless-' + self.gateway_name,
                            settings='GoCardLess Settings',
                            controller=self.gateway_name)
     call_hook_method('payment_gateway_enabled',
                      gateway='GoCardless-' + self.gateway_name)
Beispiel #26
0
 def validate(self):
     create_payment_gateway("Paynow")
     call_hook_method('payment_gateway_enabled', gateway="Paynow")
Beispiel #27
0
	def on_update(self):
		create_payment_gateway('Braintree-' + self.gateway_name, settings='Braintree Settings', controller=self.gateway_name)
		call_hook_method('payment_gateway_enabled', gateway='Braintree-' + self.gateway_name)