Documentation
¶
Index ¶
- type NowPaymentService
- func (s *NowPaymentService) AuthPaymentService() (*string, error)
- func (s *NowPaymentService) CreateInvoice(req nowpaymentsrequest.CreateInvoiceRequest, userId uint, payCurrency string) (*nowpaymentsresponse.CreateInvoiceResponse, error)
- func (s *NowPaymentService) CreatePayment(req nowpaymentsrequest.CreatePaymentRequest, userId uint) (*nowpaymentsresponse.CreatePaymentResponse, error)
- func (s *NowPaymentService) GetInvoiceDataService(page, limit int, isAscendente bool, userId uint) ([]nowpaymentsmodel.NowPaymentCreateInvoice, error)
- func (s *NowPaymentService) GetInvoiceStatus(invoiceId string) (*nowpaymentsresponse.GetPaymentStatusResponse, error)
- func (NowPaymentService) GetNotWaitingResponse(data []nowpaymentsresponse.GetPaymentStatusResponse) nowpaymentsresponse.GetPaymentStatusResponse
- func (s *NowPaymentService) GetPaymentStatus(invoiceId string) (*nowpaymentsresponse.GetPaymentStatusResponse, error)
- func (s *NowPaymentService) StartPayment()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NowPaymentService ¶
type NowPaymentService struct { UserName string Password string // contains filtered or unexported fields }
func InitiateService ¶
func InitiateService(db *gorm.DB, nowPaymentApkiKey, apiUrl, userName, password string) *NowPaymentService
func (*NowPaymentService) AuthPaymentService ¶
func (s *NowPaymentService) AuthPaymentService() (*string, error)
func (*NowPaymentService) CreateInvoice ¶
func (s *NowPaymentService) CreateInvoice(req nowpaymentsrequest.CreateInvoiceRequest, userId uint, payCurrency string) (*nowpaymentsresponse.CreateInvoiceResponse, error)
func (*NowPaymentService) CreatePayment ¶
func (s *NowPaymentService) CreatePayment(req nowpaymentsrequest.CreatePaymentRequest, userId uint) (*nowpaymentsresponse.CreatePaymentResponse, error)
func (*NowPaymentService) GetInvoiceDataService ¶
func (s *NowPaymentService) GetInvoiceDataService(page, limit int, isAscendente bool, userId uint) ([]nowpaymentsmodel.NowPaymentCreateInvoice, error)
func (*NowPaymentService) GetInvoiceStatus ¶
func (s *NowPaymentService) GetInvoiceStatus(invoiceId string) (*nowpaymentsresponse.GetPaymentStatusResponse, error)
func (NowPaymentService) GetNotWaitingResponse ¶ added in v0.3.1
func (NowPaymentService) GetNotWaitingResponse(data []nowpaymentsresponse.GetPaymentStatusResponse) nowpaymentsresponse.GetPaymentStatusResponse
func (*NowPaymentService) GetPaymentStatus ¶
func (s *NowPaymentService) GetPaymentStatus(invoiceId string) (*nowpaymentsresponse.GetPaymentStatusResponse, error)
func (*NowPaymentService) StartPayment ¶
func (s *NowPaymentService) StartPayment()
Click to show internal directories.
Click to hide internal directories.