Moqui component for Stripe. Integrates with Mantle payment processing. Currently supports Auth/Capture/Release/Refund operations along with adding and removing PaymentMethods from Stripe. Interacts with the Stripe API via the Stripe java library. Adapted from the AuthorizeDotNet component https://github.com/moqui/AuthorizeDotNet
To add this component to Moqui the easiest approach is to use the Gradle get component task:
$ ./gradlew getComponent -Pcomponent=mantle-stripe
Or add a dependency in your component.xml file like:
<depends-on name="mantle-stripe"/>
Or you can just clone this repo into your runtime/component/
directory.
$ git clone https://github.com/moqui/mantle-stripe
-
In
data/StripeDemoData.xml
add the secretKey from Stripe into the<Stripe.PaymentGatewayStripe />
recordsecretKey="sk_test_..."
-
Load the record along with the other configuration data found in
data/
$ ./gradlew load
-
You're ready to go!
-
If you want to automatically add newly created cards to Stripe set the preferenceValue in date/StripeDemoData.xml to true in this record:
<moqui.security.UserGroupPreference userGroupId="ALL_USERS" preferenceKey="StripeEnabled" preferenceValue="true"/>
-
I chose to keep the authors from AuthorizeDotNet in the AUTHORS file because a lot of the original functionality came from there.