Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetProviderFactory ¶
func NewGetProviderFactory() service.GetProviderService
func NewPaypalProvider ¶
func NewPaypalProvider(stripProvider PaypalProvider) service.OrderProviderService
func NewStripeProvider ¶
func NewStripeProvider(stripProvider StripeProvider) service.OrderProviderService
Types ¶
type PaypalProvider ¶
type PaypalProvider interface { CreateOrder(ctx context.Context, intent string, purchaseUnits []paypal.PurchaseUnitRequest, payer *paypal.CreateOrderPayer, appContext *paypal.ApplicationContext) (*paypal.Order, error) CaptureOrder(ctx context.Context, orderID string, captureOrderRequest paypal.CaptureOrderRequest) (*paypal.CaptureOrderResponse, error) RefundCapture(ctx context.Context, captureID string, refundCaptureRequest paypal.RefundCaptureRequest) (*paypal.RefundResponse, error) }
Click to show internal directories.
Click to hide internal directories.