Skip to content

Instantly share code, notes, and snippets.

@jedateach
Created June 25, 2012 00:39
Show Gist options
  • Save jedateach/2985717 to your computer and use it in GitHub Desktop.
Save jedateach/2985717 to your computer and use it in GitHub Desktop.
Payment config files stored in mysite/_config/
Name: dummypayment
---
Director:
rules:
'dummy/external/$Action/$ID': 'DummyExternalGateway_Controller'
'payment/$MethodName/$Action/$ID': 'Payment_Controller_GatewayHosted'
# first idea (tied to gateway):
DummyGatewayHosted_Gateway_Production:
id_name: DummyGatewayHosted
title: Dummy Gateway (Hosted)
controller: Payment_Controller
model: DummyGatewayHosted
# or second idea (register details with factory):
PaymentFactory:
methods:
DummyGatewayHosted:
title: Dummy Gateway (Hosted)
gateway: DummyGatewayHosted_Gateway_Production
controller: Payment_Controller
model: DummyGatewayHosted
name: mypaymentconfig
---
PaypalExpress_Gateway:
username: someuser@somedomain.com
password: bla234hkg23h
signature: ahflbukwl498dh23kh30Zggay232fdkfdg_Asdfalele
PaymentExpressPxPay_Gateway:
username: SomeUserName
key: lasdlhasdl4h3h34ht34ho34lgh034gqq034tq304gh3gq34h0gq304gh
name: mytestpaymentconfig
---
PaypalExpress_Test_Gateway:
username: test.user235235@sandbox.paypal.com
password: ahkl432hltg
signature: al3440gns03hksgh34h3hhllfgnvjh34h4hkhk_34h3hqt
PaymentExpressPxPay_Test_Gateway:
username: SomeUsernane_Dev
key: aal3hw23htalk4htaqh34tlq34htaqlthlal4thalg2346thth9ghha
DummyPayment_Test_Gateway: #for making dummy payments
name: supportedmethods
---
Payment_Controller:
methods:
PaypalExpress
PaymentExpressPxPay
DummyPayment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment