What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello all, While placing an order with a custom payment method, I get "You need to provide at leas
Hello all,
While placing an order with a custom payment method, I get "You need to provide at least one state machine process for given method!" error, although I have defined it inside my config_default.php like this:
$config[SalesConstants::PAYMENT_METHOD_STATEMACHINE_MAPPING] = [ PaymentConfig::PAYMENT_FOREIGN_PROVIDER => 'ForeignPaymentB2CStateMachine01', UnipayPaymentConfig::PROVIDER_NAME => 'UnipayPayment01' ];
Can someone please tell me what might be the problem?
Comments
-
what is the name of the custom payment method?
0 -
@UL65CH0MC Provider is called 'UnipayPayment' and the payment method is called 'unipayFunpay'
0 -
Ok.. and what is the value of this constant
UnipayPaymentConfig::PROVIDER_NAME
?0 -
@UL65CH0MC it is 'UnipayPayment'
0 -
ok then it's clear that does not macht.. the payment method name should match in
PAYMENT_METHOD_STATEMACHINE_MAPPING
0 -
it means :
$config[SalesConstants::PAYMENT_METHOD_STATEMACHINE_MAPPING] = [ PaymentConfig::PAYMENT_FOREIGN_PROVIDER => 'ForeignPaymentB2CStateMachine01', 'unipayFunpay' => 'UnipayPayment01'
0 -
@UL65CH0MC It actually means:
$config[SalesConstants::PAYMENT_METHOD_STATEMACHINE_MAPPING] = [ PaymentConfig::PAYMENT_FOREIGN_PROVIDER => 'ForeignPaymentB2CStateMachine01', 'UnipayPayment' => 'UnipayPayment01'
0 -
@UL65CH0MC Hello, the issue got fixed. The payment method name was in the wrong constant. Thank you for making me look into this.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 930 Developer Corner
- 788 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random