mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	initial commit
This commit is contained in:
		
							
								
								
									
										23
									
								
								crates/router/src/compatibility/stripe.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								crates/router/src/compatibility/stripe.rs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,23 @@ | ||||
| mod app; | ||||
| mod customers; | ||||
| mod payment_intents; | ||||
| mod refunds; | ||||
| use actix_web::{web, Scope}; | ||||
| mod errors; | ||||
| pub(crate) use errors::ErrorCode; | ||||
|  | ||||
| pub(crate) use self::app::{Customers, PaymentIntents, Refunds}; | ||||
| use crate::routes::AppState; | ||||
| pub struct StripeApis; | ||||
|  | ||||
| impl StripeApis { | ||||
|     pub(crate) fn server(state: AppState) -> Scope { | ||||
|         let max_depth = 10; | ||||
|         let strict = false; | ||||
|         web::scope("/vs/v1") | ||||
|             .app_data(web::Data::new(serde_qs::Config::new(max_depth, strict))) | ||||
|             .service(PaymentIntents::server(state.clone())) | ||||
|             .service(Refunds::server(state.clone())) | ||||
|             .service(Customers::server(state)) | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Sampras Lopes
					Sampras Lopes