Changed main currency to JPY
This commit is contained in:
@ -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.
|
@ -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",
|
||||
}},
|
||||
|
Reference in New Issue
Block a user