<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: toyagov</title>
    <description>The latest articles on DEV Community by toyagov (@toyagov378).</description>
    <link>https://dev.to/toyagov378</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F834007%2Fdcee2b5b-9fe9-4b26-9292-2d5f7dbfde83.jpg</url>
      <title>DEV Community: toyagov</title>
      <link>https://dev.to/toyagov378</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/toyagov378"/>
    <language>en</language>
    <item>
      <title>RapidLoad</title>
      <dc:creator>toyagov</dc:creator>
      <pubDate>Mon, 21 Mar 2022 09:54:58 +0000</pubDate>
      <link>https://dev.to/toyagov378/rapidload-review-automated-unused-css-removal-up-to-95-1kh7</link>
      <guid>https://dev.to/toyagov378/rapidload-review-automated-unused-css-removal-up-to-95-1kh7</guid>
      <description></description>
    </item>
    <item>
      <title>How To Create Secure Authorize.net Payment Form</title>
      <dc:creator>toyagov</dc:creator>
      <pubDate>Mon, 21 Mar 2022 09:24:22 +0000</pubDate>
      <link>https://dev.to/toyagov378/how-to-create-secure-authorizenet-payment-form-5clh</link>
      <guid>https://dev.to/toyagov378/how-to-create-secure-authorizenet-payment-form-5clh</guid>
      <description>&lt;p&gt;&lt;strong&gt;Accept Hosted&lt;/strong&gt;&lt;br&gt;
Accept Hosted is a mobile-optimized payment form hosted by Authorize.net. It enables you to use the Authorize.net API to submit payment transactions while maintaining SAQ-A level PCI compliance. You can redirect customers to the Accept Hosted payment form or embed the payment form directly in your own page.&lt;/p&gt;

&lt;p&gt;For Accept Hosted API details, see the API Reference Guide.&lt;/p&gt;

&lt;p&gt;To use a JavaScript library to accept payments, using either your payment form or the included hosted form, see the documentation for Accept.js.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The implementation and use of Accept Hosted follow a basic workflow:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;You call getHostedPaymentPageRequest to request a form token. This request contains transaction information and form parameter settings.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You embed the payment form or redirect the customer to the payment form by sending an HTML POST containing the form token to &lt;a href="https://accept.authorize.net/payment/payment"&gt;https://accept.authorize.net/payment/payment&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Your customer completes and submits the payment form.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The API sends the transaction to Authorize.net for processing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The customer is returned to your site, which displays a result page based on the URL followed or the response details sent.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Requesting the Form Token&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Accept Hosted process starts with a &lt;em&gt;getHostedPaymentPageRequest&lt;/em&gt; API call. The response contains a form token that you can use in a subsequent request to display the hosted payment form. Using the form token ensures that the payment form request comes from you and that the transaction details remain unchanged by the customer or a third party.&lt;/p&gt;

&lt;p&gt;The form token is valid for 15 minutes. You must display the payment form within that time. If the browser makes a request for the payment form using an expired form token, an error is displayed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TRANSACTION REQUEST DETAILS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The transactionRequest element contains transaction details and values that can be used to populate the form fields. It uses the same child elements as the transactionRequest element in createTransactionRequest. Only the transactionType and amount elements are required.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; No form field is displayed if its corresponding element in transactionRequest is absent or set to a NULL value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HOSTED FORM PARAMETER SETTINGS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To control the payment form, use the following parameter settings within the hostedPaymentSettings element of the &lt;em&gt;getHostedPaymentPageRequest&lt;/em&gt; API call.&lt;br&gt;
The values for all parameters sent within hostedPaymentSettings are sent as JSON objects, regardless of whether you sent the &lt;em&gt;getHostedPaymentPageRequest&lt;/em&gt; API call in JSON or XML format. If you send the API request in JSON format, use backslashes to escape the quote characters within hostedPaymentSettings, as shown in the Get Hosted Payment Page Request and Response section below.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Get Hosted Payment Page Request and Response&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;JSON REQUEST&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
    "getHostedPaymentPageRequest": {
        "merchantAuthentication": {
            "name": "API_LOGIN_ID",
            "transactionKey": "API_TRANSACTION_KEY"
        },
        "transactionRequest": {
            "transactionType": "authCaptureTransaction",
            "amount": "20.00",
            "profile": {
                "customerProfileId": "123456789"
            },
            "customer": {
                "email": "ellen@mail.com"
            },
            "billTo": {
                "firstName": "Ellen",
                "lastName": "Johnson",
                "company": "Souveniropolis",
                "address": "14 Main Street",
                "city": "Pecan Springs",
                "state": "TX",
                "zip": "44628",
                "country": "USA"
            }
        },
        "hostedPaymentSettings": {
            "setting": [{
                "settingName": "hostedPaymentReturnOptions",
                "settingValue": "{\"showReceipt\": true, \"url\": \"https://mysite.com/receipt\", \"urlText\": \"Continue\", \"cancelUrl\": \"https://mysite.com/cancel\", \"cancelUrlText\": \"Cancel\"}"
            }, {
                "settingName": "hostedPaymentButtonOptions",
                "settingValue": "{\"text\": \"Pay\"}"
            }, {
                "settingName": "hostedPaymentStyleOptions",
                "settingValue": "{\"bgColor\": \"blue\"}"
            }, {
                "settingName": "hostedPaymentPaymentOptions",
                "settingValue": "{\"cardCodeRequired\": false, \"showCreditCard\": true, \"showBankAccount\": true}"
            }, {
                "settingName": "hostedPaymentSecurityOptions",
                "settingValue": "{\"captcha\": false}"
            }, {
                "settingName": "hostedPaymentShippingAddressOptions",
                "settingValue": "{\"show\": false, \"required\": false}"
            }, {
                "settingName": "hostedPaymentBillingAddressOptions",
                "settingValue": "{\"show\": true, \"required\": false}"
            }, {
                "settingName": "hostedPaymentCustomerOptions",
                "settingValue": "{\"showEmail\": false, \"requiredEmail\": false, \"addPaymentProfile\": true}"
            }, {
                "settingName": "hostedPaymentOrderOptions",
                "settingValue": "{\"show\": true, \"merchantName\": \"G and S Questions Inc.\"}"
            }, {
                "settingName": "hostedPaymentIFrameCommunicatorUrl",
                "settingValue": "{\"url\": \"https://mysite.com/iFrameCommunicator.html\"}"
            }]
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Reference Blog&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.gomahamaya.com/authorize-net-payment-form/"&gt;How To Create Secure Authorize.net Payment Form&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How To Remove jQuery Migrate From WordPress</title>
      <dc:creator>toyagov</dc:creator>
      <pubDate>Mon, 21 Mar 2022 08:36:29 +0000</pubDate>
      <link>https://dev.to/toyagov378/how-to-remove-jquery-migrate-from-wordpress-5c37</link>
      <guid>https://dev.to/toyagov378/how-to-remove-jquery-migrate-from-wordpress-5c37</guid>
      <description>&lt;p&gt;jQuery Migrate greatly simplifies the process of moving older jQuery code to a higher jQuery version by identifying deprecated features. It then restores deprecated features and behaviors so that older code will still run properly on the current jQuery version and later.&lt;br&gt;
Most up-to-date frontend code and plugins don’t require jquery-migrate.min.js. In most cases, this simply adds unnecessary load to your site. You can see this running if you launch Chrome Devtools console.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to remove jQuery migrate from WordPress?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Removing jQuery migrate from WordPress is quite easy. You just need to add the following lines of code to your theme’s functions.php file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//Remove JQuery migrate

function remove_jquery_migrate( $scripts ) {
   if ( ! is_admin() &amp;amp;&amp;amp; isset( $scripts-&amp;gt;registered['jquery'] ) ) {
        $script = $scripts-&amp;gt;registered['jquery'];
   if ( $script-&amp;gt;deps ) { 
// Check whether the script has any dependencies

        $script-&amp;gt;deps = array_diff( $script-&amp;gt;deps, array( 'jquery-migrate' ) );
 }
 }
 }
add_action( 'wp_default_scripts', 'remove_jquery_migrate' );
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Remove jQuery Migrate using WP Rocket Plugin&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;WP Rocket plugin comes with inbuilt functionality to remove jQuery migrate with a single click.&lt;/p&gt;

&lt;p&gt;To remove jQuery Migrate using WP Rocket, goto WP Rocket plugin’s &lt;strong&gt;setting &amp;gt;&amp;gt; File Optimization.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hdu2XF82--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/75pukhve079utus4ylhs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hdu2XF82--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/75pukhve079utus4ylhs.png" alt="Image description" width="880" height="598"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Under the JavaScript Files section, you can check the box for Remove jQuery Migrate.&lt;br&gt;
That’s it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reference Blog&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.gomahamaya.com/remove-jquery-migrate-wordpress/"&gt;How To Remove jQuery Migrate From WordPress&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
