Forum Discussion

john-davies's avatar
john-davies
Copper Contributor
Oct 11, 2023
Solved

Stripe integration

Edit: this has now been resolved in the latest version of F&E (dated April 2024) that now uses Stripe client-side tokenization.  We have it working as expected in a test environment. 

 

Hi all

We are in the process of linking F&E to Stripe (test mode for now) to take credit card transactions.  In the Payment Processor I have set the Stripe Service Key field to the Stripe Publishable Key value. The API Key field has been set to the Stripe Secret Key value.  This is not well documented, but @chrisw_tes advised this was working correctly for them in another post in this forum.  These API credentials have been transferred into Azure as per the documentation.  When I add a Stripe test credit card to a transaction (stage 1), it completes successfully and I can see a token has been returned in the Stripe logging.  When I process the transaction (stage 2), if fails with "Unsuccessful response from Stripe - secret_key_required".  I can see a similar error in the Stripe logging - suggesting a publishable API key has been used instead of a secret key, incorrectly.  But the POST did include the token created in stage 1.  

So I tried setting both values in the Payment Processor to the secret key - but then the addition of the credit card (stage 1) fails, suggesting that "sending credit card numbers directly to the Stripe API is generally unsafe".  Please can anyone offer some advice here - is F&E using the wrong key in stage 2 and this is a bug?  Or have I made a mistake in the config somewhere? 

 

Many Thanks!

 

Added a couple of members who have commented on Stripe in this forum:  BobKanzler jjbh_ as they might well have some further insight!  Thanks!

6 Replies

  • Hey john-davies

     

    You may be interested to learn that Microsoft Tech for Social Impact announced a new release of Fundraising and Engagement on April 16, 2024. This update introduces Stripe client-side tokenization to improve the payment experience for users who prefer Stripe as a payment processor in Fundraising and Engagement.

     

    Check out this article for more information: What's new in Fundraising and Engagement April 16, 2024 - Microsoft Cloud for Nonprofit | Microsoft Learn

     

    Thanks,

  • BobKanzler's avatar
    BobKanzler
    Copper Contributor
    We ended up doing the security self assessment. Stripe accepted the self assessment quickly and we got past the issue.
    • john-davies's avatar
      john-davies
      Copper Contributor
      Hi - this does not appear to be a required step in the instructions I have followed to set up integration with Stripe. I have followed this documentation:
      https://learn.microsoft.com/en-us/dynamics365/industry/nonprofit/fundraising-engagement-deploy-configuration

Resources