#27 added more info to transaction + callback from stripe

This commit is contained in:
Dominic Villemure
2024-05-09 18:00:42 -04:00
parent 5980eb7f0f
commit 4f97f8ad25
13 changed files with 770 additions and 22 deletions

View File

@@ -16,8 +16,8 @@ public class Stripe : EndpointGroupBase
return sender.Send(command);
}
private static Task<string> ConfirmTransaction(ISender sender, ConfirmStripeTransactionCommand command)
private async static Task<string> ConfirmTransaction(ISender sender, ConfirmStripeTransactionCommand command)
{
return sender.Send(command);
return await sender.Send(command);
}
}

View File

@@ -2,9 +2,28 @@
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft": "Information",
"Microsoft.AspNetCore.SpaProxy": "Information",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"Google": {
"ClientId": "468391910875-78sfopq1t12ulrv4f5vj227j45guuj66.apps.googleusercontent.com",
"ClientSecret": "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",
"ProjectId": "hutopy-420016",
"AuthUri": "https://accounts.google.com/o/oauth2/auth",
"TokenUri": "https://oauth2.googleapis.com/token",
"AuthProviderX509CertUrl": "https://www.googleapis.com/oauth2/v1/certs",
"RedirectUris": [
"https://hutopy.ca",
"https://hutopy.com",
"http://localhost"
],
"JavascriptOrigins": [
"https://hutopy.ca",
"https://hutopy.com",
"http://localhost"
]
}
}

View File

@@ -723,12 +723,94 @@
"type": "object",
"additionalProperties": false,
"properties": {
"userTransactionId": {
"type": "string",
"format": "guid"
"id": {
"type": "string"
},
"isConfirmed": {
"object": {
"type": "string"
},
"created": {
"type": "integer",
"format": "int32"
},
"data": {
"$ref": "#/components/schemas/Data"
},
"request": {
"$ref": "#/components/schemas/Request"
}
}
},
"Data": {
"type": "object",
"additionalProperties": false,
"properties": {
"object": {
"$ref": "#/components/schemas/Object"
}
}
},
"Object": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"amount": {
"type": "integer",
"format": "int32"
},
"billing_details": {
"$ref": "#/components/schemas/BillingDetails"
},
"calculated_statement_descriptor": {
"type": "string"
},
"currency": {
"type": "string"
},
"paid": {
"type": "boolean"
},
"payment_intent": {
"type": "string"
},
"payment_method": {
"type": "string"
},
"receipt_url": {
"type": "string"
},
"status": {
"type": "string"
},
"failure_message": {
"type": "string"
}
}
},
"BillingDetails": {
"type": "object",
"additionalProperties": false,
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"phone": {
"type": "string"
}
}
},
"Request": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
}
}
},