Class: SpreeDoordash::Credential

Inherits:
Object
  • Object
show all
Defined in:
app/models/spree_doordash/credential.rb

Overview

A DoorDash Drive access key + webhook secret for one Spree::Store. Unlike SpreeSquare::Credential, this isn't an OAuth connection — DoorDash Drive auth is a static access key (developer_id/key_id/signing_secret), created once in DoorDash's Developer Portal and entered directly here, used to sign a fresh short-lived JWT per API call (see SpreeDoordash::Client). No refresh flow, so no expires_at/needs_refresh? the way Square's Credential has.

Instance Method Summary collapse

Instance Method Details

#sandbox?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/models/spree_doordash/credential.rb', line 19

def sandbox?
  doordash_environment == 'sandbox'
end