| | |
| | | Route::for('square/process-payment') |
| | | ->post([$this, 'handlePaymentProcessing']) |
| | | ->auth('public') |
| | | ->rateLimit(2); |
| | | ->rateLimit(2) |
| | | ->register(); |
| | | |
| | | Route::for('square/saved-cards') |
| | | ->post([$this, 'getSavedCards']) |
| | | ->auth('user') |
| | | ->rateLimit(5); |
| | | ->rateLimit(5) |
| | | ->register(); |
| | | |
| | | Route::for('square/order-history') |
| | | ->get([$this, 'getOrderHistory']) |
| | | ->auth('user') |
| | | ->rateLimit(5); |
| | | ->rateLimit(5) |
| | | ->register(); |
| | | |
| | | Route::for(Route::pattern('square/order-status/{order_id}')) |
| | | ->get([$this, 'getOrderStatus']) |
| | | ->auth('public') |
| | | ->rateLimit(20); |
| | | ->rateLimit(20) |
| | | ->register(); |
| | | } |
| | | |
| | | //TODO: Are we processing this through our server at all? Or is it in the javascript going straight to square? |