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
}
Observable<string>
Default | – |
---|---|
Description | A URL for the PayPal login page. |
Observable<string>
Default | – |
---|---|
Description | A PayPal URL that allows a customer to edit their checkout details. |
Observable<boolean>
Default | – |
---|---|
Description | The loading state for retrieving a single paypal. |
Observable<DaffStateError>
Default | – |
---|---|
Description | Errors associated with retrieving a single paypal. |
void
Dispatches the given action.
Parameter | action: Action |
---|---|
Description | action to dispatch. |