mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-12-03 20:34:01 +01:00
fix payment UI
This commit is contained in:
@@ -92,6 +92,7 @@ const SocketHandlers = {
|
||||
socket.on('payment_created', this.onPaymentCreated);
|
||||
socket.on('payment_confirmed', this.onPaymentConfirmed);
|
||||
socket.on('payment_detected', this.onPaymentDetected);
|
||||
socket.on('show_payment_options', this.onShowPaymentOptions);
|
||||
socket.on('credits_update', this.onCreditsUpdate);
|
||||
|
||||
// Block height handler
|
||||
@@ -603,6 +604,14 @@ const SocketHandlers = {
|
||||
}
|
||||
},
|
||||
|
||||
onShowPaymentOptions: function(data) {
|
||||
console.log('Show payment options:', data);
|
||||
// Show the payment options modal so user can choose how to play
|
||||
if (typeof PaymentUI !== 'undefined') {
|
||||
PaymentUI.show();
|
||||
}
|
||||
},
|
||||
|
||||
_lastDisplayedConfirmation: null,
|
||||
_confirmationTimestamps: {}, // paymentId -> ts
|
||||
onPaymentConfirmed: function(data) {
|
||||
|
||||
Reference in New Issue
Block a user