I want to change the country which is default as united states

flexbuzzr
New Community Member

paypal1.png

 

1. i am not able to change the top address as highlighted in the picture

using the code  

2. how to set the phone number

3.  is is possible to disable the billing and shipping address fields so that user is not able to change it.

 

payment: function(data, actions) {
                return actions.payment.create({
                    payment: {                        
                        transactions: [
                            {
                                amount: { total: '<?php echo $data["total_price"]; ?>', currency: '<?php echo $data["total_cur"]; ?>' },
                                description: "Flex-Bzz..R payment for order number : <?php echo $data["order_number"]; ?>",
    custom: "merchant custom data",
    invoice_number: "<?php echo $data["order_number"]; ?>"
                            }
                        ],
                    payer:
  {
    "payment_method": "paypal",
    "payer_info":
    {
      "email": "<?php echo $data["email"]; ?>",
      "first_name": "<?php echo $data["first_name"]; ?>",
      "last_name": "<?php echo $data["last_name"]; ?>",
      "payer_id": "<?php echo $data["sno"]; ?>",
      "billing_address": {
"phone": "<?php echo $data["bill_phone"]; ?>",
"line1": "<?php echo $data["bill_add1"]; ?>",
"line2": "<?php echo $data["bill_add2"]; ?>",
"city": "<?php echo $data["bill_city"]; ?>",
"country_code": "<?php echo $data["ct_code"]; ?>",
"postal_code": "<?php echo $data["bill_post"]; ?>",
"state": "<?php echo $data["bill_state"]; ?>"
}
      
    }
  }
                    }                    
                });
            },

 

Login to Me Too
2 REPLIES 2

Anonymous_User
Not applicable

You may want to contact Tech Support for assistance.

Login to Me Too

kernowlass
Esteemed Advisor
Esteemed Advisor

@flexbuzzr

 

If your account is U.S and you are now in Poland then..............

 

Paypal is country specific so if you move countries you have to open another paypal account in the country you reside in and add an address / phone number / and bank accounts from within that country.

You are supposed to withdraw any funds / resolve issues / remove cards and bank accounts before you leave your old country. If you don't then you may have problems doing so once you have moved.

The only exception is U.S expats can add their bank accounts to other countries paypal accounts (paypal is a U.S company so they allow their citizens to do this).


Advice is voluntary.
Kudos / Solution appreciated.
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.