vue-paypal-checkout icon indicating copy to clipboard operation
vue-paypal-checkout copied to clipboard

Local don't change on updated hook

Open Sabe67 opened this issue 7 years ago • 2 comments

Hello,

I have a problem with the local prop. When I try to change it when the hook updated is called nothing happend. I try the same thing with the amount prop and it's work.

Their is my paypal button :

<PayPal
        :amount="total"
        currency="EUR"
        :locale="paypalLocale"
        :client="credentials"
        :button-style="paypalStyle"
        env="sandbox"
        v-on:payment-completed="paymentCompleted">
</PayPal>

My data :

data () {
    return {
      paypalLocale: ''
   }
}

And my updated hook :

updated: function(){
    if(this.$store.state.lang == "fr"){
      this.paypalLocale = "fr_FR"
    } else {
      this.paypalLocale = "en_US"
    }
},

Thank you for your help and sorry for my english :)

Sabe67 avatar May 31 '18 11:05 Sabe67

Hey @Sabe67,

Thanks for reporting this. I'll need to look into this.

cocoastorm avatar May 31 '18 23:05 cocoastorm

Hi @khoanguyen96,

Do you think you will work on this soon ?

Sabe67 avatar Feb 18 '19 14:02 Sabe67