PayPal payment integration code with auto return URL in sandbox mode

Here we are elaborate steps needed in PayPal payment integration with auto return URL in sandbox mode

>>> step one

we need a PayPal form with field values like amount , invoice, currency_code and action “https://www.sandbox.paypal.com/cgi-bin/webscr”

See below code
paypal payment form with auto return URL
( copy below code and save )

<div class="row spo space_top_10" style=" margin: auto;width: 24%;margin-top: 6%;">
 <h1>subscribe now </h1>
 <form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr">
 <input type="hidden" value="_xclick" name="cmd">
 <input type="hidden" value="[email protected]" name="business">
 
 <input type="hidden" value="Order for subscribtion" name="item_name">
 <input type="hidden" value="NA" name="item_number">
 <input type="hidden" value="4" name="amount">
 <input type="hidden" value="1234567890" name="invoice">
 <input type="hidden" value="0" name="discount_amount"> 
 <input type="hidden" value="0" name="no_shipping">
 <input type="hidden" value="No comments" name="cn">
 <input type="hidden" value="USD" name="currency_code">
 <input type="hidden" value="https://www.tutorialshore.com/paypal/paypal.php" name="return">
 <input type="hidden" value="2" name="rm"> 
 
 <input type="hidden" value="US" name="lc">
 <input type="hidden" value="PP-BuyNowBF" name="bn">
 <input type="text" value="4 USD" name="amount2">
 <input type="submit" value="Pay by paypal" name="finalizeOrder" id="finalizeOrder" class="submitButton paypal_button">
</form>
</div>



>>>>> Step two

open below link and login with PayPal credential
https://developer.paypal.com/

Go to sandbox menu account and create bushiness account and personal account

store both personal and businesses sandbox credential and logout

>>>> Step three

Visit below link and login with sandbox businesses credential

https://www.sandbox.paypal.com/cgi-bin/webscr

Go to Account Settings as seen in the below picture

PayPal payment integration code with auto return URL in sandbox mode

Go to website payment as seen in the below picture

PayPal payment integration code with auto return URL in sandbox mode step 2

click Website preferences update options

PayPal payment integration code with auto return URL in sandbox mode step 3

start your payment test

https://www.tutorialshore.com/paypal/paypal.php

I am trying to download a from Google Drive . it says it is creating a zip. After I wait for the process to finish, it says it is done and then disappears, never to be seen again

I am trying to download a from Google Drive . it says it is creating a zip. After I wait for the process to finish, it says it is done and then disappears, never to be seen again


Solution

Click On leave button popup

Step 1

Right click and click on download
drive files unable to download

step 2

Click On leave button popup

drive files unable to download Click On leave button

how to view amazon prime videos in android smart TV

Here is the steps to view amazon prime videos in android smart TV

1) Install amazon prime App in your Android smart phone

install amazon prime videos in android smart TV

2) Install Chromecast app in your Android smart phone ( http://play.google.com/store/apps/details?id=de.twokit.castbrowser&hl=en_IN)

install and view amazon prime videos in android smart TV

3) Connect both your android smart TV and android smart phone to the same WiFi

4) Open any video program in amazon prime videos you wish to watch in your android smart TV

4) click on Chromecast icon that appearing in amazon prime videos to watch the same prime videos in android smart TV
Chromecast install and view amazon prime videos in android smart TV

See it is connecting

WhatsApp Image 2020-04-27 at 3.43.02 PM (1)

WhatsApp Image 2020-04-27 at 3.47.45 PM

Drupal 8 Query to get similar blog post

Here we are going to fetch similar blog by blog node id, so inside .theme file
( in theme root folder) you can add below code and fetch similar blog by “field_blog_tags” field in drupal 8

Drupal 8 Query to get similar blog post

   $valuesTags=$variables['node']->get('field_blog_tags')->getValue();
  foreach($valuesTags as $key=>$value)
   {
   
   $smilarprd[]=$value['target_id'];
   }

   $nids = \Drupal::entityQuery('node')->condition('type', 'blog_post')->condition('field_blog_tags', $smilarprd,'IN')->condition('nid', $Nid, '!=')->range(0, 3)->execute();
  $RelatedBlog =  \Drupal\node\Entity\Node::loadMultiple($nids);
 
 $variables['RelatedBlog'] = $RelatedBlog;