mirror of https://github.com/abpframework/eventhub
21 changed files with 247 additions and 30 deletions
@ -0,0 +1,3 @@ |
|||
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> |
|||
<ConfigureAwait /> |
|||
</Weavers> |
|||
@ -0,0 +1,30 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
|||
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. --> |
|||
<xs:element name="Weavers"> |
|||
<xs:complexType> |
|||
<xs:all> |
|||
<xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1"> |
|||
<xs:complexType> |
|||
<xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" /> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:all> |
|||
<xs:attribute name="VerifyAssembly" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="VerifyIgnoreCodes" type="xs:string"> |
|||
<xs:annotation> |
|||
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="GenerateXsd" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:schema> |
|||
@ -0,0 +1,18 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Payment.PayPal |
|||
{ |
|||
public static class PayPalConsts |
|||
{ |
|||
public static class Environment |
|||
{ |
|||
public const string Sandbox = "Sandbox"; |
|||
|
|||
public const string Live = "Live"; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,22 @@ |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Payment.PayPal |
|||
{ |
|||
public class PayPalOptions |
|||
{ |
|||
public string ClientId { get; set; } |
|||
|
|||
public string Secret { get; set; } |
|||
|
|||
public string Locale { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// "Sandbox" or "Live". Default value is "Sandbox"
|
|||
/// </summary>
|
|||
public string Environment { get; set; } = PayPalConsts.Environment.Sandbox; |
|||
|
|||
public bool Recommended { get; set; } |
|||
|
|||
public List<string> ExtraInfos { get; set; } = new(); |
|||
} |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
namespace Payment |
|||
{ |
|||
public class PaymentOptions |
|||
{ |
|||
public string DefaultCurrency { get; set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
@page |
|||
@using Payment.Web.Pages.Payment |
|||
@inherits Payment.Web.Pages.PaymentPageBase |
|||
@model Payment.Web.Pages.Payment.CheckoutCallbackModel |
|||
@{ |
|||
PageLayout.Content.Title = L["Redirecting"]; |
|||
} |
|||
<p>@L["Redirecting"]</p> |
|||
@ -0,0 +1,6 @@ |
|||
namespace Payment.Web.Pages.Payment |
|||
{ |
|||
public class CheckoutCallbackModel : PaymentPageModel |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
using Microsoft.AspNetCore.Mvc.Razor.Internal; |
|||
using Microsoft.Extensions.Localization; |
|||
using Payment.Localization; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Layout; |
|||
|
|||
namespace Payment.Web.Pages |
|||
{ |
|||
public class PaymentPageBase : Microsoft.AspNetCore.Mvc.RazorPages.Page |
|||
{ |
|||
[RazorInject] public IStringLocalizer<PaymentResource> L { get; set; } |
|||
|
|||
[RazorInject] public IPageLayout PageLayout { get; set; } |
|||
|
|||
public override Task ExecuteAsync() |
|||
{ |
|||
return Task.CompletedTask; // Will be overriden by razor pages. (.cshtml)
|
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue