@sourceloop/payment-service / Exports / PayPalPaymentGateway
Interface: PayPalPaymentGateway¶
Table of contents¶
Methods¶
Methods¶
charge¶
▸ charge(chargeResponse
): Promise
<DataObject
<{ orderId
: string
; res
: string
}>>
Parameters¶
Name | Type |
---|---|
chargeResponse |
Object |
chargeResponse.orderId |
string |
Returns¶
Promise
<DataObject
<{ orderId
: string
; res
: string
}>>
Defined in¶
services/payment-service/src/providers/paypal/types.ts:9
create¶
▸ create(payorder
, paymentTemplate
): Promise
<string
> | DataObject
<{}>
Parameters¶
Name | Type |
---|---|
payorder |
Orders |
paymentTemplate |
undefined | string |
Returns¶
Promise
<string
> | DataObject
<{}>
Defined in¶
services/payment-service/src/providers/paypal/types.ts:5
refund¶
▸ refund(transactionId
, note?
): void
| Promise
<{}>
Parameters¶
Name | Type |
---|---|
transactionId |
string |
note? |
string |
Returns¶
void
| Promise
<{}>
Defined in¶
services/payment-service/src/providers/paypal/types.ts:12
subscriptionCharge¶
▸ subscriptionCharge(chargeResponse
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
chargeResponse |
AnyObject |
Returns¶
Promise
<void
>
Defined in¶
services/payment-service/src/providers/paypal/types.ts:17
subscriptionCreate¶
▸ subscriptionCreate(subscriptions
, paymentTemplate
): {} | Promise
<string
>
Parameters¶
Name | Type |
---|---|
subscriptions |
Subscriptions |
paymentTemplate |
undefined | string |
Returns¶
{} | Promise
<string
>
Defined in¶
services/payment-service/src/providers/paypal/types.ts:13
subscriptionWebHook¶
▸ subscriptionWebHook(sub
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
sub |
DataObject <{}> |
Returns¶
Promise
<void
>