A Django app that allows running payment campaigns on FOI requests.
Include payments.urls in root URL pattern.
urlpatterns = [
...
url(r'^payments/', include('payments.urls')),
...
]Configure these event types:
payment_intent.payment_failedpayment_intent.succeededcustomer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deletedinvoice.payment_action_requiredinvoice.upcominginvoice.created
Use this URL on your domain:
/payments/process/creditcard/
Configure these event types:
payment_intent.processingcharge.dispute.closedinvoice.payment_action_requiredinvoice.upcominginvoice.createdinvoice.finalizedpayment_intent.succeededpayment_intent.payment_failedcustomer.subscription.createdcustomer.subscription.deleted
Use this URL on your domain:
/payments/process/sepa/
Configure these event types:
charge.succeededcharge.failedsource.chargeablesource.failed
Use this URL on your domain:
/payments/process/sofort/
Configure these event types:
Use this URL on your domain:
/payments/process/paypal/
PAYMENT_VARIANTS = {
# 'default': ('payments.dummy.DummyProvider', {})
'creditcard': ('froide_payment.provider.StripeIntentProvider', {
# Test API keys
'public_key': '',
'secret_key': '',
# separate Webhook signing secret
'signing_secret': '',
}),
'sepa': ('froide_payment.provider.StripeSourceProvider', {
# Test API keys
'public_key': '',
'secret_key': '',
# separate Webhook signing secret
'signing_secret': '',
}),
'paypal': ('payments.paypal.PaypalProvider', {
'client_id': '',
'secret': '',
'endpoint': '',
'capture': True,
'webhook_id': ''
}),
'sofort': ('froide_payment.provider.StripeSofortProvider', {
# Test API keys
'public_key': '',
'secret_key': '',
# separate Webhook signing secret
'signing_secret': '',
}),
}