GitHub

DaffPaypalFacade

import { DaffPaypalFacade } from '@daffodil/paypal/state'

@Injectable()
class DaffPaypalFacade implements DaffPaypalFacadeInterface {
  paypalStartUrl$: Observable<string>
  paypalEditUrl$: Observable<string>
  loading$: Observable<boolean>
  error$: Observable<DaffStateError>

  dispatch(action: Action<string>): void
}

Properties

paypalStartUrl$
Observable<string>
Default
Description

A URL for the PayPal login page.

paypalEditUrl$
Observable<string>
Default
Description

A PayPal URL that allows a customer to edit their checkout details.

loading$
Observable<boolean>
Default
Description

The loading state for retrieving a single paypal.

error$
Observable<DaffStateError>
Default
Description

Errors associated with retrieving a single paypal.

() Methods

dispatch
void

Dispatches the given action.

Parameters
Parameteraction: Action
Description

action to dispatch.