Skip to content

Commit

Permalink
1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
PaylineGitHub committed Nov 20, 2018
1 parent a8eafce commit 83ebd0e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Model/PaymentManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,14 @@ public function saveCheckoutPaymentInformationFacade(

public function wrapCallPaylineApiDoWebPaymentFacade($cartId)
{
$cart = $this->cartRepository->getActive($cartId);
$response = $this->callPaylineApiDoWebPaymentFacade(
$this->cartRepository->getActive($cartId),
$cart,
$this->paylineCartManagement->getProductCollectionFromCart($cartId),
$this->cartTotalRepository->get($cartId),
$this->quotePaymentMethodManagement->get($cartId),
$this->quoteBillingAddressManagement->get($cartId),
$this->quoteShippingAddressManagement->get($cartId)
$cart->getIsVirtual() ? null : $this->quoteShippingAddressManagement->get($cartId)
);

return [
Expand Down
2 changes: 1 addition & 1 deletion PaylineApi/Request/DoWebPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function setBillingAddress(AddressInterface $billingAddress)
return $this;
}

public function setShippingAddress(AddressInterface $shippingAddress)
public function setShippingAddress(AddressInterface $shippingAddress = null)
{
$this->shippingAddress = $shippingAddress;
return $this;
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@ composer config repositories.paylinebymonext-payline-magento-2 vcs https://githu
composer require monext/module-payline
php -f bin/magento module:enable Monext_Payline
php -f bin/magento setup:upgrade
php -f bin/magento setup:upgrade
## Configuration
*Find Payline configuration menu under STORES > Settings > Configuration > SALES > Payment Methods
*Fill your merchant ID and access key under the "Common settings" section.
*Contracts are imported under the "Payline Contracts" section. The multi-select "Contracts" fied allows to choose which one will be visible on your store.
* "Payment solutions" section displays the "Payline - Web Payment Cpt" method configuration (more to come). Select your payment options and order status mapping in this section.
## Payline Category Mapping
The dedicated "Payline Category Mapping" field is added by the Payline extension under the "Content" section of each product category. The drop-down list allows to map your custom category with one from Payline's nomenclature. This mapping is necessary for partner solutions like Oney, Cofinoga, Cetelem,...

0 comments on commit 83ebd0e

Please sign in to comment.