Interchange6 Stack Status Quo DBIx::Class Payment Dancer Plugin Demo && Administration
Interchange 6 - Open Source Shop Machine
Stefan Hornburg (Racke)
[email protected]
Interchange6 Stack Status Quo DBIx::Class Payment Dancer Plugin Demo && Administration
Shopsoftware
I
Magento
I
Shopware
Interchange6 Stack Status Quo DBIx::Class Payment Dancer Plugin Demo && Administration
Interchange6 Stack
Status Quo DBIx::Class Payment Dancer Plugin Demo && Administration
Standard Stack
I
DBIx::Class
I
Moo
I
Dancer
I
Template::Flute
I
Solr
Interchange6 Stack
Status Quo DBIx::Class Payment Dancer Plugin Demo && Administration
Custom Stack
I
DBIx::Class
I
Moo
I
Dancer Web::Simple
I
Template::Flute Template Toolkit
Interchange6 Stack
Status Quo
DBIx::Class Payment Dancer Plugin Demo && Administration
Status Quo
I
Interchange6::Schema (Businesslogik)
Interchange6 Stack Status Quo
DBIx::Class
Payment Dancer Plugin Demo && Administration
Interchange6::Schema
I
Produkte, Attribute, Preise, Bestand
I
Benutzer, Adressen
I
Warenkorb, Sitzungen
I
Bestellungen, Zahlungen
Interchange6 Stack Status Quo DBIx::Class
Payment
Dancer Plugin Demo && Administration
Payment Module
Ablauf
Payment Module
I
Business::OnlinePayment
I
unterstützt viele Anbieter
I
nicht sehr modern
Interchange6 Stack Status Quo DBIx::Class
Payment
Dancer Plugin Demo && Administration
Payment Module Ablauf
Alternativen
I
AnyMerchant
https://metacpan.org/pod/AnyMerchant
I
keine Entwicklung
Interchange6 Stack Status Quo DBIx::Class
Payment
Dancer Plugin Demo && Administration
Payment Module Ablauf
Payment Module
I
Business::OnlinePayment::IPayment (1&1)
Silent CGI
I
Business::OnlinePayment::FirstData
Interchange6 Stack Status Quo DBIx::Class
Payment
Dancer Plugin Demo && Administration
Payment Module
Ablauf
PaymentOrder erzeugen
$payment_order = $schema
−
> r e s u l t s e t ( ’ PaymentOrder ’ )
Interchange6 Stack Status Quo DBIx::Class
Payment
Dancer Plugin Demo && Administration
Payment Module
Ablauf
Zahlung erfolgreich
I
Status und Transaktionscode aktualisieren
$payment_order
−
>update ( {
s t a t u s => ’ success ’ ,
auth_code => $bop_object
−
>a u t h o r i z a t i o n ,
} ) ;
Interchange6 Stack Status Quo DBIx::Class
Payment
Dancer Plugin Demo && Administration
Payment Module Ablauf
Zahlung fehlgeschlagen
I
Status aktualisieren
$payment_order
−
>update ( {
s t a t u s => ’ f a i l u r e ’ ,
} ) ;
Interchange6 Stack Status Quo DBIx::Class Payment
Dancer Plugin
Demo && Administration
Keywords Routes Configuration Hooks
Dancer::Plugin::Interchange6
I
Keywords
I
Routes
I
Configuration
I
Hooks
Interchange6 Stack Status Quo DBIx::Class Payment
Dancer Plugin
Demo && Administration
Keywords Routes Configuration Hooks
Keywords
I
shop_schema
I
shop_product, shop_address, ...
$product = shop_product(’F0001’);
I
shop_cart
I
shop_charge
I
shop_setup_routes
Interchange6 Stack Status Quo DBIx::Class Payment
Dancer Plugin
Demo && Administration
Keywords Routes Configuration Hooks
Routes
I
Produkt
I
Navigation
I
Warenkorb
I
Checkout
I
Konto
Interchange6 Stack Status Quo DBIx::Class Payment
Dancer Plugin
Demo && Administration
Keywords
Routes
Configuration Hooks
Produkt
I
Produkt “Dancer und DBIx::Class”
I
sku
978-0815-0815
Interchange6 Stack Status Quo DBIx::Class Payment
Dancer Plugin
Demo && Administration
Keywords Routes Configuration Hooks
Navigation
I
Kategorien
http://www.cart.pm/Programming/Perl/Dancer
I
Produktfilter
http://www.cart.pm/Programming/Perl/Dancer/
Author/racke/Sort/price
Interchange6 Stack Status Quo DBIx::Class Payment
Dancer Plugin
Demo && Administration
Keywords Routes Configuration Hooks
Fallback Routes
any q r { .
∗
} =>
sub
{
# check f o r matching p r o d u c t
. . .
# check f o r matching n a v i g a t i o n
. . .
# d i s p l a y n o t _ f o u n d page
s t a t u s
’ n o t _ f o u n d ’ ;
Interchange6 Stack Status Quo DBIx::Class Payment
Dancer Plugin
Demo && Administration
Keywords Routes Configuration Hooks
Routes Configuration
I n t e r c h a n g e 6 : : Routes :
c a r t :
t e m p l a t e : checkout
−
g i f t i n f o
u r i : warenkorb
n a v i g a t i o n :
t e m p l a t e :
l i s t i n g
Interchange6 Stack Status Quo DBIx::Class Payment
Dancer Plugin
Demo && Administration
Keywords Routes Configuration Hooks
Hooks
hook ’ b e f o r e _ n a v i g a t i o n _ d i s p l a y ’ =>
sub
{
my
$nav_tokens =
s h i f t
;
# l o a d
l i s t
o f brands
my
$brands = s h o p _ n a v i g a t i o n
−
>search (
{ t y p e => ’ m a n u f a c t u r e r ’ ,
a c t i v e => 1 } ) ;
Interchange6 Stack Status Quo DBIx::Class Payment Dancer Plugin
Demo && Administration
Demo Shop
I
Wireframes
https://github.com/interchange/
Interchange6-Demo-Shop
I
HTML
(in Arbeit)
I
Flowers hacking shop
Interchange6 Stack Status Quo DBIx::Class Payment Dancer Plugin
Demo && Administration
Administration
I
ERP
I
API
IOpenERP
IMagento kompatibel
I
TableEditor
https://github.com/interchange/TableEditor
Interchange6 Stack Status Quo DBIx::Class Payment Dancer Plugin
Demo && Administration
Mitarbeit
I
kleines Entwicklerteam
I
Github
I
IRC
I#interchange freenode
I#dancer
Interchange6 Stack Status Quo DBIx::Class Payment Dancer Plugin
Demo && Administration