lang: update language

This commit is contained in:
Alpha Kane
2022-02-22 02:39:26 +08:00
parent 2ceb910812
commit 1c569a2d45
4 changed files with 17 additions and 17 deletions

View File

@ -46,7 +46,7 @@ class StripeCredit {
$currency = $this->config['currency'];
$exchange = $this->exchange('CNY', strtoupper($currency));
if (!$exchange) {
abort(500, __('user.order.stripeCard.currency_convert_timeout'));
abort(500, __('Currency conversion has timed out, please try again later'));
}
Stripe::setApiKey($this->config['stripe_sk_live']);
try {
@ -62,10 +62,10 @@ class StripeCredit {
]);
} catch (\Exception $e) {
info($e);
abort(500, __('user.order.stripeCard.was_problem'));
abort(500, __('Payment failed. Please check your credit card information'));
}
if (!$charge->paid) {
abort(500, __('user.order.stripeCard.deduction_failed'));
abort(500, __('Payment failed. Please check your credit card information'));
}
return [
'type' => 2,