Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
integration
testsuite
Magento
Checkout
_files
quote_with_payment_saved.php
Go to the documentation of this file.
1
<?php
7
require
'quote_with_address.php'
;
8
10
$serializer
=
$objectManager
->create(\
Magento
\Framework\Serialize\Serializer\Json::class);
11
12
$quote
->setReservedOrderId(
13
'test_order_1_with_payment'
14
);
15
16
$paymentDetails
= [
17
'transaction_id'
=> 100500,
18
'consumer_key'
=>
'123123q'
,
19
];
20
21
$quote
->getPayment()
22
->setMethod(
'checkmo'
)
23
->setPoNumber(
'poNumber'
)
24
->setCcOwner(
'tester'
)
25
->setCcType(
'visa'
)
26
->setCcExpYear(2014)
27
->setCcExpMonth(1)
28
->setAdditionalData(
$serializer
->serialize(
$paymentDetails
));
29
30
$quote
->collectTotals()->save();
31
33
$quoteIdMask
=
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
()
34
->create(\
Magento
\Quote\Model\QuoteIdMaskFactory::class)
35
->create();
36
$quoteIdMask
->setQuoteId(
$quote
->getId());
37
$quoteIdMask
->setDataChanges(
true
);
38
$quoteIdMask
->save();
$quoteIdMask
$quoteIdMask
Definition:
quote_with_payment_saved.php:33
$objectManager
$objectManager
Definition:
bootstrap.php:17
$paymentDetails
$paymentDetails
Definition:
quote_with_payment_saved.php:16
$serializer
$serializer
Definition:
quote_with_payment_saved.php:10
$quote
$quote
Definition:
paypal_quote.php:17
Magento
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125