Add invoice look up in stripe popup.

Hello

Right now i am using the stripe payment in suiteCRM application.

I want to add invoice look up and the currency dropdown in that form.

How can i add this two field in that form ?

i attached screen short also in that form i add thsi two fields.

Many Thanks…

Hi Phil,

Is this a plug-in or something that you have developed?

Were you able to resolve your issue?

Thanks,

Will.

Hello will

Actually i find the similar solution.

I place the Make Payment button in invoice dropdown menu. By doing this i solve my problem.

1 Like

Dear pgohil,

could you post the details on how you achieved this so that also others can benefit from your finding?

Thanks!

Hello All

Paste this code in top of following location.

/custom/modules/AOS_Invoices/metadata/detailviewdefs.php

$json = file_get_contents(‘modules/sc_StripePayments/config.php’);
$settings = json_decode($json, true);
//<script type=“text/javascript” src=‘modules/sc_StripePayments/v2.js’>
//<script type=“text/javascript” src=“https://js.stripe.com/v1/”>
$button_code = "

<script type=“text/javascript” src=‘modules/sc_StripePayments/v2.js’>
<script type=“text/javascript”>Stripe.setPublishableKey(’".$settings[‘publishable_key’]."’);
<script type=“text/javascript” src=“modules/sc_StripePayments/payment_form.js?v=”.time()."">
";

echo $button_code;

1 Like

Thanks for sharing, this is great - does this still work with recent updates - Stripe and Suite? sc_StripePayments is this: https://github.com/superlativecode/Stripe-SugarCRM/tree/master/SugarModules/modules/sc_StripePayments I assume?

Really appreciate you sharing this as I might implement in the next month or so.

jstephenson,
Were you able to deploy stripe payment solution with suitecrm? I would like to do the same for my installation.
Thanks

Hello,
I copied the file onto the custom/metadata folder and added the code you used but it didn’t really work as I expected. Could you have some time to go over how you got yours working? Thank you.