sequra_create_order_request_merchant_data
Hook
Filter
Filter the merchant.
Description
This filter allows modifying the merchant
to be used to build the merchant reference payload attribute for the Order, OrderUpdate and DeliveryReport API calls.
Parameter | Type | Description |
---|---|---|
$merchant | SeQura\Core\BusinessLogic\Domain\Order\Models\OrderRequest\Merchant | Merchant instance |
Changelog
Version | Description |
---|---|
3.0.0 | Introduced |
Usage Example
add_filter('sequra_create_order_request_cart_options', function($merchant){
return new \SeQura\Core\BusinessLogic\Domain\Order\Models\OrderRequest\Merchant(
$merchant->getId(), // Your custom value here.
$merchant->getNotifyUrl(), // Your custom value here.
$merchant->getReturnUrl(), // Your custom value here.
$merchant->getApprovedCallback(), // Your custom value here.
$merchant->getEditUrl(), // Your custom value here.
$merchant->getAbortUrl(), // Your custom value here.
$merchant->getRejectedCallback(), // Your custom value here.
$merchant->getPartpaymentDetailsGetter(), // Your custom value here.
$merchant->getApprovedUrl(), // Your custom value here.
$merchant->getOptions(), // Your custom value here.
$merchant->getEventsWebhook(), // Your custom value here.
);
});
Updated about 1 month ago