How to modify Afterpay banner code for multiple currencies and locations?

I am using liquid/html to incorporate my afterpay message banner on my product pages. The only issue is that the code does not account for different currencies and locations of customers and update accordingly. How would i fix the code so it does take this into account. The code is below:

<afterpay-placement
data-locale=“en_US”
data-currency=“USD”
data-amount=“1731.45”

Hello @Khaleed_1269 ,

Make the attributes dynamic.
e.g.
data-amount=“1731.45”
should be {{ product.price | money_without_currency }}

Thanks

I don’t understand…

So replace data-amount with what you said?

So the new one would be:

<afterpay-placement
data-locale=“en_US”
data-currency=“USD”
{{ product.price | money_without_currency }}

It worked but I was wondering if there was a way to hide the after pay banner for customers specifically in India??

Check what you have in locale when a customer visit from India.
e.g. When a customer visit from USA locale is en_US
Once you get it use it with if condition.
if user locale is India don’t display afterpay banner.

What would the updated code for that be? I have no idea haha