Generating a unique ID to pass to Payment Provider?

Hi.
I have a site that has "orders" from customers which have a
unique ID (PK).
I'm using ASP / SQL.
I was passing this ID to my payment service provider but have
discovered
that, if a customer for some reason cancels the order (highly
likely), then
that ID cannot be passed to the payment provider again.
Therefore, when the
customer logs back in to our site, they'll still see the
order as "requiring
payment" but when they try to re-submit the order, the
payment provider
won't allow it! Groan!
Anyway, that is the way their system works, and I understand
why I suppose
(unique identifier 'an all that).
So, my solution is to simply pass a unique value (which
doesn't have to
relate to my unique order ID) to the payment provider.
My question is....how can I create/generate a unique value on
my checkout
page and ensure that the same value is never generated twice?
Is there a
feature in DW?
Oh yes, and I need it to be a numerical value! :o)
Thanks.
Nath.
Brain < Pea

Here is a guaranteed unique algorithm for any string (sequence of characters.)
   String createMyId(String stringToEncode)
      String uniqueId = stringOfChars;
      return uniqueId;
   }The code above guarantees the following properties (expressed as psuedo logic code, not java code.)
For any given sequence of chars A and B.
If A = B is true if and only if createMyId(A) = createMyId(B)
And of course
If A != B is true if and only if createMyId(A) != createMyId(B)
Of course the problem with the above algorithm is that it produces a variable sized value. But if you use a char array of of size Integer.MAX_VALUE then you can guarantee that it will work for any String in java. There is still a downside to this in that it requires a lot of data.
Of course someone who is particularily observant might note that this suggests that one might as well just store the string. That however is just an optimization in the above algorithm and as nothing to do with the validity of the algorithm itself.

Similar Messages

  • How to generate a unique WSDL for two webservices ?

    Hi ,
    Does anyone know if there is a way to generate a unique WSDL file for two webservices ?
    Actually, the problem is more general. I have two EJB that are exposed through web services. They both contain a simple data structure that is passed back and forth.
    The Client is a C# GUI and it is having problems with that data structure. Even if it is the same data structure with the same namespace, it seems it as two different objects and so creates two different stubs ...
    I am trying to work around that from the server side, bc it does not seem that we can do it from the C# application.
    First, I am trying to generate just one WSDL that would include both webservices but I can't seem to find an easy way of doing that.
    Second, I have heard that the complex types could be referenced externaly and I think that it would do the trick as well. I don't know how to do that either.
    I am using ServiceGen Ant tags to generate my web services from an EJB.
    Did anyone encounter that issue ?
    Can any one help ?
    Thanks a lot
    Farez

    hi,
    go to t-code SNRO and create a number range from 0 to 99999999.
    call the below fm in the report by passing the created number range name to fm to generate the new number every time..
    see
    NUMBER_GET_NEXT Get next free number in a range
    CALL FUNCTION 'NUMBER_GET_NEXT'
    EXPORTING
    NR_RANGE_NR = '01'
    OBJECT = 'YPOLLID'        "number range name created in SNRO.
    IMPORTING
    NUMBER = LS_NUMBER.       "new number with one increment..
    or
    you can try..
    you can use following code.
    select max( num ) from z_table into v_max_num.
    v_max_num = v_max_num+1.
    Regards,
    prabhudas

  • How to generate a unique 8 byte number for a String in DES

    Hi All,
    Is there any way to generate a unique 8 byte number representation of String?
    I know it can be done with DES encryption (while MD5 gives 16 bytes number). My requirement is:
    Every time a String is passed - my static method should return the same unique number - all the time.
    i.e A String "AAAAAA" will return same unique number all the time. How can I achieve this (8 byte number) by DES Encryption or any other encryption?
    Thanking all in advance.

    Thanks for your reply. Won't there be any loss of data if I consider only first 8 bytes? Will Integrity be maintained.?
    In some cases my Strings can be unusually long - having length of 400 to 500.
    I want 8 bytes as I want to map the number with MySQL bigint field.

  • How to generate a Unique key based on a some String value

    Hello every one,
    I am sorry , If I post this question in wrong group... I have a requirement to generate a unique key ( what every it may be alpha, numeric or alpha numeric) based on some String..
    For ex : String str = "AbCX" - Gives a unique key based on "AbCX" value..
    Is there any way we can get the unique value using Java ?
    Thanks

    May be not what you are looking for, but here's may idea:
    use a sequence (db sequence) and add it the the string value. This way the value is unique, because the sequence is unique. So you could omit the string theoretically, but your requirement is met.
    It's very easy to get a unique sequence number from the db using java, depending of the technology you use (which you did not say :-( )
    Timo

  • How to best generate a unique alphanumeric key

    Hi:
      I have a requirement to generate a unique alphanumeric key 20 characters long.
      I know that I can use sys.dbms_random.string('X', 20) but I also have a requirement to not include certain characters that could be missread, i.e. no 0 (zero), O(uppercase oh) and a few others.
      My questions are:
         1) Is there a way to tell dbms_random to not include certain characters in the key generation
         2) If the answer to 1 is No, what would be the best way to replace the unwanted characters.  I am thinking just do a translate right afterwards with a randomly generated set of characters that do not include the characters I am interested in and seeded
             upon package initialization.  Any other ideas.
        3) Is there a better way of meeting this requirement within PL/SQL?
    Thanks,
    Thomas

    The most safe would be to use something like below if efficient enough
    select listagg(x.ltr,'') within group (order by y.step desc) key
      from (select level lvl,
                   substr(:alphabet,level,1) ltr
              from dual
            connect by level <= length(:alphabet)
           ) x,
           (with
            to_base(step,num,base,quot,remain) as
            (select 1 step,num,base,trunc(num / base) quot,mod(num,base) remain
               from (select :sequence_value num,length(:alphabet) base
                       from dual
                      where :sequence_value between power(length(:alphabet),:key_length - 1)
                                                and power(length(:alphabet),:key_length) - 1
             union all
             select step + 1,quot,base,trunc(quot / base),mod(quot,base)
               from to_base
              where num > 0
            select step,remain
              from to_base
             where num > 0
           ) y
    where x.lvl = y.remain + 1
    Regards
    Etbin

  • Generate an unique number without sequence

    Hello,
    I need generate an unique number without sequence. I am using Oracle 11.2, here is the details. The column idSeq is unique withing one specific idType. I don't want a sequence for each idType.
    create table tb_test (idSeq number(5), idType number(5), addr varchar2(256));
    insert into tb_test
    (select case when idSeq is null then 1 else max(idSeq)+1 end, 3, 'Main street');
    I am having ORA-00937 : not a single-group group function error, any suggestion?
    Edited by: 939569 on 13-Feb-2013 11:21 AM

    Hi,
    939569 wrote:
    Hello,
    I need generate an unique number without sequence. Explain what you're trying to do, and why a sequence won't do it.
    I am using Oracle 11.2, here is the details. The column idSeq is unique withing one specific idType. I don't want a sequence for each idType.
    create table tb_test (idSeq number(5), idType number(5), addr varchar2(256));
    insert into tb_test
    (select case when idSeq is null then 1 else max(idSeq)+1 end, 3, 'Main street');
    I am having ORA-00937 : not a single-group group function error,Right. Since the sub-query is using an aggregate function (MAX), everything in the SELECT clause must be an aggregate, a group by expression, a constant, or something that depends entirely on them. In this example, the CASE expression depends on idSeq, which is not an aggregate, not a group by expression (there is no GROUP BY clause) and not a constant.
    Also, the sub-query must have a FROM clause. All queries and sub-queries in Oracle require a FROM clause.
    any suggestion?Use a sequence. The numbers won't be consecutive within each idType, but what does that matter? Chances are, no matter what you do, you won't be able to maintain consecutive numbers within each idType anyway.
    If you won't use a sequence, then you can try:
    INSERT INTO  tb_test (idSeq, idType, addr)
    SELECT  1 + NVL ( MAX (id_seq)
                  , 0
    ,       3
    ,     'Main street;
    FROM     tb_test
    WHERE   idType  = 3
    ;

  • Pass Through Payments

    Hello Finance Experts,
    Can you advise please if there is functionality to achieve the following in SAP? Is there a concept called 'Pass Through payments' or something similar whereby open invoices in SAP that are due for payment could be scheduled to run automatically every morning for payment without input from an end user?
    Thanks for any

    As mentioned, you can shedule a Background Job. Go to transaction sm36 for shedulling the Job and Sm37 for monitoring backgrond job. Similarly customer incoming and outgoing payment can be sheduled and executed.
    Thanks & Regards
    Jomon.

  • HT201359 Yesterday I buy 99 usd point from game ! But the game system say cant pass the payment ! But today iTunes send mail report say the payment is go over !

    Yesterday I buy 99 usd point from game ! But the game system say cant pass the payment ! But today iTunes send mail report say the payment is go over ! So ?the payment ?

    Months of impecable service form BT as an option 3 customer. (I've even recommended BT to people)
    but
    For the past 2 weeks peak traffic has murdered my connection.
    I can get 14mbit off peak, and it used to drop to about 7-9 at peak times.
    Now its down to 1-2mbit at peak times. (no i haven't breached FUP as I check my btinternet inbox for the 80GB warning)
    I think its resonable to experience drop off but 90%!!!
    BT advertising says fast speeds at peak times. less than 2mbit is not fast. (that the governments minimum standard!!!)
    I don't know how to procede because when I'm experiencing these issues if I ring up I will end up waiting so long to speak to someone (because its peak time) the concection wiill be better again.
    I can think of no recourse other than to approach trading standards...
    Guarnetee me 5mbit at peak times (enough to stream HD iplayer) and I'd be happy
    That is what BT vision customers are in essence are getting + what ever their PC is using.
    Fair usage? what about Fair Supply.

  • How to generate Serial(Unique) Number for finished goods?

    Guru's,
    How do i generate Serial(Unique) Numbers for finished goods.Suppose,if we get an order for a finished good A of 10 qty.We want to generate unique number to identify each and every A item separately for quality purpose.Any help is much appreciated.
    thanks Guru's

    Depending on serial control of item, you will need to generate serial numbers at the time of WIP Completion transaction using Serial Entry window (i.e. if serial control is At Receipt) or at the time of job creation (i.e. if you are using serial control as predefined)
    In latter case, you will have to use MES or MSCA screens to perform serialized WIP completion.
    Thanks,
    Hrishi

  • Credit Card Stopped Working "Oops, seems your card or payment provider is having a bad day"

    !!! SUCCESS : read below !!! I was on Premium and Spotify was charging my credit card (last charge in January 2015).  Then in February I got an email saying I needed to update my payment information and I lost Premium. I ended up deleting the card and re-adding it after talking with email support.  Everytime I tried to "upgrade to premium" I get this error message.“Oops, seems your card or payment provider is having a bad day. Don’t worry, no money has been charged. Try again or use another payment method.”  Spotify support already told me to check with my bank and I have.The card works, there is no block on any transactions.  The credit card company says there haven't even been any transactions attempted by Spotify (nothing to decline). I have a Chase Sapphire VISA card in the USA. Anyone else have this problem?  Anyone at Spotify think they can fix this?  So far, email support has only told me that it's my bank's fault or to try a different payment method. ** Update **Spotify support confirmed that it's a Visa card. Didn't say if they attempted a transaction or not.They suggested it might be something wrong with my account and that I should create a new account and upgrade it.I refuse to change anything from what was working in January until Spotify gives me a reason things are broken. ** Update **Spotify support contacted the Payments Team. They said it "might be because our system needs a little time to catch up with things".  They recommended waiting 48 hours before trying to upgrade to Premium again.This doesn't make any sense to me, but I'm will to try it.They gave me another free month of Premium while I wait.  Much appreciated. ** Update **Regarding the last contact I had with Spotify Support, I waited for a few days and tried again. Didn't work.  I repeated the process a few days later and still didn't work. I repeated for a third time a few days later and still didn't work. I replied to Spotify Support and let them know and haven't heard anything back since a few days ago. I'm just waiting as of now. ** Update **I was contacted again by Spotify Support (email).     "I'm afraid that currently there isn't much that we can do, but this isn't[sic] being looked into.      I did add another month of Premium onto your account and once that runs out the issue should be fixed." So, I still don't know if Spotify has identified a problem. I will continue to wait and use month to month Premium. ** Update **On May 14, 2015 I was able to subscribe to spotify premium with my credit card.I wasn't notified by Spotify support that I should try again.  It was the same card and account, but a new credit card number.My long nightmare of ad supported listening is finally coming to a close.  I hope everyone who has run into this issue will try again and report here if there is still an issue.

    I'm having the same problem with the payment, is there any email to contact the spotify team, it's no my bank nor my credit cards having problemsrmustard wrote:
    I was on Premium and Spotify was charging my credit card (last charge in January 2015).  Then in February I got an email saying I needed to update my payment information and I lost Premium. I ended up deleting the card and re-adding it after talking with email support.  Everytime I tried to "upgrade to premium" I get this error message.“Oops, seems your card or payment provider is having a bad day. Don’t worry, no money has been charged. Try again or use another payment method.”  Spotify support already told me to check with my bank and I have.The card works, there is no block on any transactions.  The credit card company says there haven't even been any transactions attempted by Spotify (nothing to decline). I have a Chase Sapphire VISA card in the USA. Anyone else have this problem?  Anyone at Spotify think they can fix this?  So far, email support has only told me that it's my bank's fault or to try a different payment method. ** Update **Spotify support confirmed that it's a Visa card. Didn't say if they attempted a transaction or not.They suggested it might be something wrong with my account and that I should create a new account and upgrade it.I refuse to change anything from what was working in January until Spotify gives me a reason things are broken. ** Update **Spotify support contacted the Payments Team. They said it "might be because our system needs a little time to catch up with things".  They recommended waiting 48 hours before trying to upgrade to Premium again.This doesn't make any sense to me, but I'm will to try it.They gave me another free month of Premium while I wait.  Much appreciated.rmustard wrote:
    I was on Premium and Spotify was charging my credit card (last charge in January 2015).  Then in February I got an email saying I needed to update my payment information and I lost Premium. I ended up deleting the card and re-adding it after talking with email support.  Everytime I tried to "upgrade to premium" I get this error message.“Oops, seems your card or payment provider is having a bad day. Don’t worry, no money has been charged. Try again or use another payment method.”  Spotify support already told me to check with my bank and I have.The card works, there is no block on any transactions.  The credit card company says there haven't even been any transactions attempted by Spotify (nothing to decline). I have a Chase Sapphire VISA card in the USA. Anyone else have this problem?  Anyone at Spotify think they can fix this?  So far, email support has only told me that it's my bank's fault or to try a different payment method. ** Update **Spotify support confirmed that it's a Visa card. Didn't say if they attempted a transaction or not.They suggested it might be something wrong with my account and that I should create a new account and upgrade it.I refuse to change anything from what was working in January until Spotify gives me a reason things are broken. ** Update **Spotify support contacted the Payments Team. They said it "might be because our system needs a little time to catch up with things".  They recommended waiting 48 hours before trying to upgrade to Premium again.This doesn't make any sense to me, but I'm will to try it.They gave me another free month of Premium while I wait.  Much appreciated.
    hello, i have the same problem, it's not my bank or my credit cards, i did the same way as you did, is there any email to explain this situation to the spotify team... txs 

  • Unable to add payment method / "Please select a payment provider"

    Hi, been using spotify premium/unlimited for many months now and never had this problem. When trying to renew the subscription the following message appears: "Please select a payment provider". However, it doesn't let me do that as usual and the following message appears: Change payment method
    You are currently registered as being in Country pt. If you intend to use a payment method in another country, you need to change your countryto match. Also, can't change the country (and it's listed Austria for some reason, i'm from Portugal). Can you please help me pay? Thank you.

    birdseye - I can see you were able to make that upgrade just this morning. Hopefully you're back enjoying your Premium already.
    seatuttle - You should be able to change your country settings to the US with either a credit card or with your PayPal details. 
    When you go to your subscription page you should see a link that reads: "If you intend to use a payment method from a different country you need to change your country".
    If you're not seeing this option to upgrade from another launch country let us know. Attaching a screenshot of your subscription page would be a great help.  
     

  • Function module to generate a unique number in report based on descrepency

    hi friends,
    i have a object that..
    Every discrepancy Should Have a unique number in the report, which calls based on the discrepancy (dc_qty)-(recd_qty)=shortage
    the shortage value will be always positive,n not <=0..
    is there any function module which should generate a unque no
    based on passing MBLNR..
    or any other way...
    Thanks n regards
    harish

    use following funtion module
    call function 'NUMBER_GET_NEXT'
            exporting
              nr_range_nr             = '01'
              object                  = 'ZBDCMSC2N'
            importing
              number                  = file_no
            exceptions
              interval_not_found      = 1
              number_range_not_intern = 2
              object_not_found        = 3
              quantity_is_0           = 4
              quantity_is_not_1       = 5
              interval_overflow       = 6
              buffer_overflow         = 7
              others                  = 8.
          if sy-subrc <> 0.
            message id sy-msgid type sy-msgty number sy-msgno
                    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          endif.
    in This
    Creat a number Range object(ZBDCMSC2N') using transction SNRO.
    for any problem revert back.
    regards
    Rajesh

  • How to set a field that automatically generates a unique 'code'/'ID'  for fillable PDF form?

    Hi,
    I'm trying to create a PDF fillable form with Acrobat X Pro.
    Can Acrobat allow a function, so that it can automatically generate a 'number'/'code' which I could use as an 'identifier'?
    eg.  A hidden field named:  'DOC ID' and provide 100001 when added to response file as it's submitted and '100002' to another file when it another is submitted/added onto the response file etc...
    I am aware that Response files, if submitted correctly, could automatically generate numbers like 001, 002 etc...
    But I'd like to see if I could create a field, that 'numbers' the document for me automatically and uniquely.
    Any help and/or suggestions would be appreciated.
    Winnie

    Hi,
    to do this you need kind of interactivity in your form.
    You can achieve this either by:
    1) using JavaScript onchange-events on forename and surname items, or
    2) use the AJAX Computations option of ApexLib, see: http://www.oracle-and-apex.com/ajax-computations-rich-client-feeling/
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com

  • Passing Invoice Payment in Consolidation Scenario

    Hello,
    I'm writing an scenario for consolidation more Business One Companies in one HQ Company.
    I'have no problem with BP, and Invoice but a question is:
    If I want pass Incoming/Outgoing Payment referring some AP or AR Invoivces, how can I close the Invoices in HQ?
    In fact the docentry of the Invoice obvioulsy change once it is written in HQ Database.
    Any Idea ?
    Thank You

    Hi Gordon,
    No , the scenario is this:
    I post an Invoice i the subsidiary. Via netviewer the invoice is inserted in HeadQuarter
    Then I Post a payment in the subsidiary closing the Invoice.
    I'd like that when the Payment is inerted (via NetViewer) in the HeadQuarted Db, it should close the Invoice, so to have a correct Report for Open Posts in the HQ.
    Hope have been clear,
    Thank You

  • Get Hardware Info to generate computer unique key

    Hello,
    I am trying to port a desktop app I have in  c# .net framework to adobe AIR.
    One of the things I need to do is generate a computer unique key to identify the computer on the server.
    In C# i would use the System.Management.Management class and get the Motherboard Serial number, CPU ID, etc... Is this possible in ActionScript? What alternatives do I have? I can't find any reference of this on the web...
    Thanks

    Unfortunately there isn't any way to do this in AIR currently.
    The only option I can think of is to use another external program to get that data and communicate it back to the AIR app. (Currently to communicate with external apps you need some sort of bridge such as Merapi for Java. In AIR 2.0 you will be able to execute external applications directly.)

Maybe you are looking for

  • Safari will not open on iMac.

    I have an iMac and I came home and safari will not open. When I try to open it says restore windows and will then give me a problem report. How can I fix this because I can now not get on the internet.

  • How to change sort order when viewing all tracks by an artist?

    When I choose: Music --> Artists --> <any artist> --> All The tracks are organized in the order they apear in an alphabetized list of that artist's albums. For example: Joe Blow - CD 1 Track 1 Track 2 Track 3 Joe Blow - CD 2 Track 1 Track 2 Track 3 I

  • MapViewer Bean Feature Requests & Bug Tracking?

    Hi- I'm wondering where I should post feature req's and bugs for the MapViewer bean. Is there a place where these things are tracked?

  • Ecc6.0 server free remote access

    Hi,        Presently am working with Sap R/3 4.7 version I interest to learn WebDynpro, is there any free Ecc.60 remote access is available through browser, with regards, Thiru

  • Component included in SAP NetWeaver Foundation for Third Party

    Hi Experts, Now, our team discussing on how we can use integrate based on ABAP Technology to integrate Enterprise Systems. Then, we discovered the License, that SAP delivered, "SAP NetWeaver Foundation for Third Party". I heard this license allows cl