Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripe payments not working - Mandatory configuration key STRIPE_CONNECTED_ID not present #392

Closed
icougil opened this issue Feb 18, 2018 · 4 comments
Assignees
Labels
Milestone

Comments

@icougil
Copy link

icougil commented Feb 18, 2018

Hi.
We are using a PaaS where we have deployed a new version of the db that is using Alf.io. We've found that something wrong happened.
We've checked that now payments with Stripe are not working:

 Caused by: java.lang.IllegalArgumentException: Mandatory configuration key STRIPE_CONNECTED_ID not present
 	at alfio.manager.system.ConfigurationManager.lambda$getRequiredValue$2(ConfigurationManager.java:142) ~[classes!/:?]
 	at java.util.Optional.orElseThrow(Optional.java:290) ~[?:1.8.0_161-heroku]
 	at alfio.manager.system.ConfigurationManager.getRequiredValue(ConfigurationManager.java:142) ~[classes!/:?]
 	at alfio.manager.system.ConfigurationManager$$FastClassBySpringCGLIB$$7630228.invoke(<generated>) ~[classes!/:?]
 	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
 	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738) ~[spring-aop-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
 	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) ~[spring-tx-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
 	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) ~[spring-tx-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[spring-tx-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
 	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673) ~[spring-aop-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
 	at alfio.manager.system.ConfigurationManager$$EnhancerBySpringCGLIB$$fa35437d.getRequiredValue(<generated>) ~[classes!/:?]
 	at alfio.manager.StripeManager.options(StripeManager.java:212) ~[classes!/:?]
 	at alfio.manager.StripeManager.chargeCreditCard(StripeManager.java:191) ~[classes!/:?]
 	at alfio.manager.PaymentManager.processStripePayment(PaymentManager.java:85) ~[classes!/:?]
 	... 100 more
 ERROR alfio.controller.ControllerExceptionHandler - unexpected exception
org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:724) ~[spring-tx-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
	at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:504) ~[spring-tx-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:292) ~[spring-tx-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[spring-tx-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673) ~[spring-aop-4.3.10.RELEASE.jar!/:4.3.10.RELEASE]
	at alfio.manager.TicketReservationManager$$EnhancerBySpringCGLIB$$f3e6d6.confirm(<generated>) ~[classes!/:?]
	at alfio.controller.ReservationController.handleReservation(ReservationController.java:469) ~[classes!/:?]
20

Please, have a look, how we can solve it? We are about to open the sales!

@icougil
Copy link
Author

icougil commented Feb 18, 2018

I've solved the issue just inserting a new row in the 'Configuration' table containing a new entry STRIPE_CONNECTED_ID that has the same value as STRIPE_CONNECT_CLIENT_ID , so I suppose there is something wrong this constant ...

@cbellone
Copy link
Member

cbellone commented Feb 18, 2018

please check if you have enabled "Platform Mode". If yes, disable it.

image

Platform mode uses Stripe Connect for multi-tenant environments, where the manager of the instance collects fees from (other) event organizers for each ticket sold. I don't think it could be useful for your use case.

If you want to collect fees from customers, you can add a new Additional Option with the following policy:

image

@icougil
Copy link
Author

icougil commented Feb 18, 2018

Hi.
I've checked and in the system & event the "Platform Mode" is disabled while at the organization it was not changed "Leave unchanged".
Thanks for the tip about the fees for customers! Didn't notice about how to manage it!

@cbellone cbellone added bug and removed question labels Feb 20, 2018
@cbellone cbellone self-assigned this Feb 20, 2018
cbellone added a commit that referenced this issue Feb 23, 2018
cbellone added a commit that referenced this issue Feb 23, 2018
…NNECTED_ID has been configured

(cherry picked from commit fb88035)
cbellone added a commit that referenced this issue Feb 26, 2018
cbellone added a commit that referenced this issue Feb 26, 2018
(cherry picked from commit 0b20b53)
cbellone added a commit that referenced this issue Feb 26, 2018
(cherry picked from commit 0b20b53)
@cbellone cbellone added this to the 1.14 milestone Mar 17, 2018
@cbellone
Copy link
Member

this should be solved now. Will be released in the upcoming v1.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants