Changed main currency to JPY

This commit is contained in:
2017-10-06 05:53:49 +02:00
parent 03c79e2932
commit c0d57e51c9
10 changed files with 81 additions and 81 deletions

View File

@ -3,7 +3,7 @@ component Charge(user *arn.User)
h1.mountable Charge up
p.text-center.mountable You can charge up your balance via PayPal. 1 USD equals 100 gems.
p.text-center.mountable You can add balance via PayPal. 1 Japanese Yen equals 1 Gem.
.buttons
button.action.mountable(data-trigger="click", data-action="chargeUp", data-amount=1000)
@ -26,4 +26,4 @@ component Charge(user *arn.User)
Icon("diamond")
span 12000
.footer.text-center.mountable You need to enable popup windows in your browser.
.footer.text-center.mountable Different currencies will automatically be converted.

View File

@ -67,7 +67,7 @@ func CreatePayment(ctx *aero.Context) string {
// return ctx.Error(http.StatusInternalServerError, "Could not create PayPal web profile", err)
// }
total := amount[:len(amount)-2] + "." + amount[len(amount)-2:]
// total := amount[:len(amount)-2] + "." + amount[len(amount)-2:]
// Create payment
p := paypalsdk.Payment{
@ -77,8 +77,8 @@ func CreatePayment(ctx *aero.Context) string {
},
Transactions: []paypalsdk.Transaction{paypalsdk.Transaction{
Amount: &paypalsdk.Amount{
Currency: "USD",
Total: total,
Currency: "JPY",
Total: amount,
},
Description: "Top Up Balance",
}},