Arbitrary prices

Author Message

Claudia Kosny

Wednesday 20 September 2006 1:55:41 pm

Hello there

I am working on a site whether the customer has an account with a certain amount of money on it. The customer should be able to increase his account balance by an arbitrary amount of money and I am looking for a way to this.

The only idea I have right now is to give a customer the option to change the price of a product and then buy this product. Unfortunately I can see major problems with this approach when lots of people try to change the same object at the same time. Also someone might change the products between the time the customer decides on the amount of money and the time he pays.
So I think the question is whether there is way to call upon a payment gateway without using the usual way of buying a product. As I do not have much experience with payment gateways at all I appreciate some tips on how to proceed.

Greetings from Luxembourg

Claudia

Andreas Kaiser

Thursday 21 September 2006 7:32:06 am

Don't know if this is possible: but perhaps you could create a "price" datatype inside the costumer/user class, and send the amount of this datatype to the payment gateway. So the amount would be unique for every user.

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Claudia Kosny

Friday 22 September 2006 2:05:25 am

Hello Andreas

This is a good idea, I will try this. Thanks

Claudia

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:18:49
Script start
Timing: Jan 18 2025 15:18:49
Module start 'layout'
Timing: Jan 18 2025 15:18:49
Module start 'content'
Timing: Jan 18 2025 15:18:50
Module end 'content'
Timing: Jan 18 2025 15:18:50
Script end

Main resources:

Total runtime1.0329 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.9453152.6094
Module start 'layout' 0.00510.0032 741.554739.4141
Module start 'content' 0.00831.0231 780.9688531.1875
Module end 'content' 1.03140.0015 1,312.15638.1875
Script end 1.0329  1,320.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3077160.0002
Check MTime0.00130.1238160.0001
Mysql Total
Database connection0.00070.069210.0007
Mysqli_queries0.986595.5104570.0173
Looping result0.00050.0513550.0000
Template Total0.999496.820.4997
Template load0.00210.200120.0010
Template processing0.997396.555620.4987
Template load and register function0.00020.014710.0002
states
state_id_array0.00090.086010.0009
state_identifier_array0.00170.167920.0009
Override
Cache load0.00170.1629160.0001
Sytem overhead
Fetch class attribute can translate value0.00060.059020.0003
Fetch class attribute name0.00240.229940.0006
XML
Image XML parsing0.00080.080720.0004
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00100.0941160.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs