- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2019
02:40 AM
10-30-2019
02:40 AM
problem understanding placeOrder sequence flow
Hi,
I'm new to magento and php
I'm looking at writing a hosted payment page integration in magento2.
I'm going through the QuoteManagement placeOrder function .
function placeOrder($cartId, PaymentInterface $paymentMethod = null)
I'm consfused that it calls $paymentMethod->setChecks, but that PaymentInterface doesn't define such a method?
How does that work?
Thanks
Martin
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2019
07:18 AM
10-30-2019
07:18 AM
Re: problem understanding placeOrder sequence flow
`QuoteManagement` class implements `\Magento\Quote\Api\CartManagementInterface` which has placeOrder() .
PaymentInterface defined payment related methods and data which can be used in placeOrder().
If it helps please give "Kudos" and "Accept solution".
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2019
02:20 AM
10-31-2019
02:20 AM
Re: problem understanding placeOrder sequence flow
The issue is that PaymentInterface doesn't seem to have a method "setChecks()" defined on it.