{"id":108868,"date":"2018-01-12T15:03:14","date_gmt":"2018-01-12T15:03:14","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=108868"},"modified":"2024-02-19T11:07:04","modified_gmt":"2024-02-19T11:07:04","slug":"manage-custom-amount-paypal-magento2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/","title":{"rendered":"Manage Custom Amount with Paypal in Magento 2"},"content":{"rendered":"\n<p>Hello,<\/p>\n\n\n\n<p>If you want to manage custom fee in your Magento, then you can read the respective blog.<\/p>\n\n\n\n<p>Now if in an order you added some custom amount, and want to pay the payment by Magento&#8217;s default Paypal payment method, then it throws the error that, amount is not same as order amount.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<p>I create an order for RS 45.<\/p>\n\n\n\n<p>and added RS 1 as a custom amount in my order.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"409\" height=\"307\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp\" alt=\"\" class=\"wp-image-422901\" style=\"width:820px;height:auto\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp 409w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary-300x225.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary-250x188.webp 250w\" sizes=\"(max-width: 409px) 100vw, 409px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Now, if i am trying to place an order using Paypal express payment method then it gives me error:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"169\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-from-2023-02-27-18-24-48-1200x169-1.webp\" alt=\"\" class=\"wp-image-422903\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-from-2023-02-27-18-24-48-1200x169-1.webp 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-from-2023-02-27-18-24-48-1200x169-1-300x42.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-from-2023-02-27-18-24-48-1200x169-1-250x35.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-from-2023-02-27-18-24-48-1200x169-1-768x108.webp 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Now, to solve this issue you have to manage that custom amount for the Paypal process also.<\/p>\n\n\n\n<p>To manage it in Paypal Payment method you can follow the given process:<\/p>\n\n\n\n<p>Add an Plugin in your module:<\/p>\n\n\n\n<p>file path:\u00a0app\/code\/Webkul\/Test\/etc\/di.xml<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:ObjectManager\/etc\/config.xsd&quot;&gt;\n    &lt;type name=&quot;Magento\\Paypal\\Model\\Api\\Nvp&quot;&gt;\n        &lt;plugin name=&quot;webkul_paypal_custom_fee_api_call&quot; type=&quot;Webkul\\Test\\Plugin\\Model\\Nvp&quot;\/&gt;\n    &lt;\/type&gt;\n\n    &lt;type name=&quot;Magento\\Paypal\\Model\\Cart&quot;&gt;\n        &lt;plugin name=&quot;webkul_update_paypal_custom_fee_order&quot; type=&quot;Webkul\\Test\\Plugin\\Model\\UpdateCustomFeeForOrderPayPal&quot;\/&gt;\n    &lt;\/type&gt;\n  \n&lt;\/config&gt;<\/pre>\n\n\n\n<p>Now define this plugin, at path:<\/p>\n\n\n\n<p>app\/code\/Webkul\\Test\\Plugin\\Model\\UpdateCustomFeeForOrderPayPal<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace Webkul\\Test\\Plugin\\Model;\n\nclass UpdateCustomFeeForOrderPayPal\n{\n\n    \/**\n     * checkout session var\n     * @var \\Magento\\Checkout\\Model\\Session _checkoutSession\n     *\/\n    protected $_checkoutSession;\n\n    public const AMOUNT_SUBTOTAL = &#039;subtotal&#039;;\n    public const REQUEST_AMOUNT = &#039;AMT&#039;;\n\n    \/**\n     * Init\n     *\n     * @param \\Magento\\Checkout\\Model\\Session $checkoutSession\n     *\/\n    public function __construct(\n        \\Magento\\Checkout\\Model\\Session$checkoutSession,\n    ) {\n        $this-&gt;_checkoutSession = $checkoutSession;\n    }\n\n    \/**\n     * Custom fee Plugin\n     *\n     * @param mixed $cart\n     * @param mixed $result\n     * @return mixed\n     *\/\n    public function afterGetAmounts($cart, $result)\n    {\n        $quote = $this-&gt;_checkoutSession-&gt;getQuote();\n        $paymentMethod = $quote-&gt;getPayment()-&gt;getMethod();\n        $paypalMehodList = &#091;&#039;payflowpro&#039;, &#039;payflow_link&#039;, &#039;payflow_advanced&#039;,\n         &#039;braintree_paypal&#039;, &#039;paypal_express_bml&#039;, &#039;payflow_express_bml&#039;, &#039;payflow_express&#039;, &#039;paypal_express&#039;];\n        if (in_array($paymentMethod, $paypalMehodList)) {\n            $result&#091;self::AMOUNT_SUBTOTAL] = $result&#091;self::AMOUNT_SUBTOTAL] + $quote-&gt;getCustomFees();\n            $customFee = $quote-&gt;getCustomFees();\n            $cart-&gt;addCustomItem(__(&#039;Custom Fee&#039;), 1, $customFee, &#039;Custom Fee&#039;);\n            $subtotalAmount = $cart-&gt;getSubtotal() + $quote-&gt;getShippingAddress()-&gt;getShippingAmount();\n            $cart-&gt;addSubtotal($subtotalAmount);\n        }\n         \n        return $result;\n    }\n}<\/pre>\n\n\n\n<p>app\/code\/Webkul\\Test\\Plugin\\Model\\Nvp<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace Webkul\\Test\\Plugin\\Model;\n\nuse \\Magento\\Checkout\\Model\\Session as CheckoutSession;\nuse \\Magento\\Paypal\\Model\\Api\\AbstractApi;\n\n\/**\n * NVP API wrappers model\n *\n * @method string getToken()\n *\/\nclass Nvp\n{\n    \/**\n     * checkout session var\n     * @var \\Magento\\Checkout\\Model\\Session _checkoutSession\n     *\/\n    protected $_checkoutSession;\n\n    \/**\n     * Init\n     *\n     * @param \\Magento\\Checkout\\Model\\Session $checkoutSession\n     *\/\n    public function __construct(\n        CheckoutSession $checkoutSession\n    ) {\n        $this-&gt;_checkoutSession = $checkoutSession;\n    }\n    \/**\n     * Before Call Method for updated request key\n     *\n     * @param AbstractApi $subject\n     * @param string $title\n     * @param array $request\n     *\/\n    public function beforeCall(AbstractApi $subject, $title, array $request)\n    {\n        $quote = $this-&gt;_checkoutSession-&gt;getQuote();\n        if ($quote-&gt;getCustomFees()) {\n          \n             $request&#091;&#039;AMT&#039;] =  $request&#091;&#039;ITEMAMT&#039;] + $request&#091;&#039;SHIPPINGAMT&#039;] + $request&#091;&#039;TAXAMT&#039;];\n        }\n        return &#091;$title, $request];\n    }\n}<\/pre>\n\n\n\n<p>After this code your order will get placed using Paypal payment method without any error.<\/p>\n\n\n\n<p>I hope this blog will help you with Manage Custom Amount with Paypal in Magento 2. You may also check our wide range of best <a href=\"https:\/\/store.webkul.com\/Magento-2.html\">Magento 2 Extensions<\/a>.<\/p>\n\n\n\n<p>Please reach out to our team via a\u00a0<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">support ticket<\/a>\u00a0if you have any queries.<\/p>\n\n\n\n<p>Try this and if you have any queries then just comment below \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello, If you want to manage custom fee in your Magento, then you can read the respective blog. Now if in an order you added some custom amount, and want to pay the payment by Magento&#8217;s default Paypal payment method, then it throws the error that, amount is not same as order amount. For example: <a href=\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[3012,2070,4481,6065],"class_list":["post-108868","post","type-post","status-publish","format-standard","hentry","category-magento2","tag-custom-amount","tag-magento2","tag-order-totals","tag-paypal-manage-custom-amount"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Manage Custom Amount with Paypal in Magento 2<\/title>\n<meta name=\"description\" content=\"In this blog we will discuss Manage Custom Amount with Paypal in Magento 2.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Manage Custom Amount with Paypal in Magento 2\" \/>\n<meta property=\"og:description\" content=\"In this blog we will discuss Manage Custom Amount with Paypal in Magento 2.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-12T15:03:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-19T11:07:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp\" \/>\n<meta name=\"author\" content=\"Bulbul\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bulbul\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/\"},\"author\":{\"name\":\"Bulbul\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/c9c6288b3950490ffdb37cb2a526996e\"},\"headline\":\"Manage Custom Amount with Paypal in Magento 2\",\"datePublished\":\"2018-01-12T15:03:14+00:00\",\"dateModified\":\"2024-02-19T11:07:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/\"},\"wordCount\":230,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp\",\"keywords\":[\"custom amount\",\"Magento2\",\"order totals\",\"paypal manage custom amount\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/\",\"url\":\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/\",\"name\":\"Manage Custom Amount with Paypal in Magento 2\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp\",\"datePublished\":\"2018-01-12T15:03:14+00:00\",\"dateModified\":\"2024-02-19T11:07:04+00:00\",\"description\":\"In this blog we will discuss Manage Custom Amount with Paypal in Magento 2.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp\",\"width\":409,\"height\":307},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Manage Custom Amount with Paypal in Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/c9c6288b3950490ffdb37cb2a526996e\",\"name\":\"Bulbul\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Bulbul\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/bulbul896\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Manage Custom Amount with Paypal in Magento 2","description":"In this blog we will discuss Manage Custom Amount with Paypal in Magento 2.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/","og_locale":"en_US","og_type":"article","og_title":"Manage Custom Amount with Paypal in Magento 2","og_description":"In this blog we will discuss Manage Custom Amount with Paypal in Magento 2.","og_url":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2018-01-12T15:03:14+00:00","article_modified_time":"2024-02-19T11:07:04+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp","type":"","width":"","height":""}],"author":"Bulbul","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Bulbul","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/"},"author":{"name":"Bulbul","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/c9c6288b3950490ffdb37cb2a526996e"},"headline":"Manage Custom Amount with Paypal in Magento 2","datePublished":"2018-01-12T15:03:14+00:00","dateModified":"2024-02-19T11:07:04+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/"},"wordCount":230,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp","keywords":["custom amount","Magento2","order totals","paypal manage custom amount"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/","url":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/","name":"Manage Custom Amount with Paypal in Magento 2","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp","datePublished":"2018-01-12T15:03:14+00:00","dateModified":"2024-02-19T11:07:04+00:00","description":"In this blog we will discuss Manage Custom Amount with Paypal in Magento 2.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/ordersummary.webp","width":409,"height":307},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/manage-custom-amount-paypal-magento2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Manage Custom Amount with Paypal in Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/c9c6288b3950490ffdb37cb2a526996e","name":"Bulbul","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Bulbul"},"url":"https:\/\/webkul.com\/blog\/author\/bulbul896\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/108868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=108868"}],"version-history":[{"count":21,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/108868\/revisions"}],"predecessor-version":[{"id":422909,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/108868\/revisions\/422909"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=108868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=108868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=108868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}